import { useState } from 'react'; import type { UseFormRegister, FieldError } from 'react-hook-form'; import { PasswordField } from '../ui/PasswordField'; type AuthMethod = 'sas' | 'key'; interface AzureAuthToggleProps { register: UseFormRegister; errors: { key?: FieldError; sas_url?: FieldError; }; } export function AzureAuthToggle({ register, errors }: AzureAuthToggleProps) { const [authMethod, setAuthMethod] = useState('sas'); return (
{/* Segmented control */}
{/* Both fields always registered — only active one visible via CSS */}
); }