import type { AppForm } from '@/components/form'; import type { MountValues } from '@/api/admin/mounts/queries'; import TitledGreyBox from '@/components/elements/TitledGreyBox'; import { validateMountName } from '@/components/admin/mounts/mountForm'; interface Props { form: AppForm; } const DetailsFields = ({ form }: Props) => (
validateMountName(value), }} > {(field) => ( )} value.length <= 191 ? undefined : 'A description must not exceed 191 characters.', }} > {(field) => ( )}
); const PathFields = ({ form }: Props) => (
(value.length >= 1 ? undefined : 'A source path must be provided.'), }} > {(field) => ( )} (value.length >= 1 ? undefined : 'A target path must be provided.'), }} > {(field) => ( )}
); const AccessFields = ({ form }: Props) => (
{(field) => ( )} {(field) => ( )}
); export default function MountFormFields({ form }: Props) { return (
); }