import type { SiteFormSectionProps } from "./siteFormModalTypes"; type SiteFormAuthFieldsProps = SiteFormSectionProps & { editingId: string | null; }; const authOptions = [ { value: "cookie", label: "Cookie" }, { value: "api_key", label: "API Key" }, { value: "auth_header", label: "Auth Header" }, ]; export function SiteFormAuthFields({ editingId, form, setForm, }: SiteFormAuthFieldsProps) { return (
{authOptions.map((option) => ( ))}
{form.auth_type === "cookie" && (