import React, { FunctionComponent } from 'react'; import { useFormContext } from 'react-hook-form'; import { FormField } from '@/common/components/organisms/Form/Form.Field'; import { FormItem } from '@/common/components/organisms/Form/Form.Item'; import { FormControl } from '@/common/components/organisms/Form/Form.Control'; import { Switch } from '@/common/components/atoms/Switch'; import { FormLabel } from '@/common/components/organisms/Form/Form.Label'; export const SwitchesList: FunctionComponent<{ label: string; options: Array<{ name: string; label: string; disabled?: boolean; defaultChecked: boolean }>; }> = ({ label, options }) => { const { control } = useFormContext(); return (