import { FC, useState } from 'react' import ReactMarkdown from 'react-markdown' import { Button, Input, InputNumber, Toggle, Listbox, IconEye, IconEyeOff } from '@supabase/ui' import { Enum } from './AuthProvidersForm.types' interface Props { name: string properties: any formValues: any disabled?: boolean } const FormField: FC = ({ name, properties, formValues, disabled = false }) => { if (properties.show && formValues[properties.show.key] !== properties.show.matches) return <> const [hidden, setHidden] = useState(!!properties.isSecret) switch (properties.type) { case 'string': return ( {properties.descriptionOptional} ) : null } descriptionText={ properties.description ? ( {properties.description} ) : null } actions={ !!properties.isSecret ? (