import { FormControlLabel, Radio, RadioGroup } from '@mui/material'; import { useAtom } from 'jotai'; import { useTranslation } from 'react-i18next'; import { Subtitle } from '../../../..'; import { contactTypeAtom } from '../atoms'; import { ContactType, type Labels } from '../models'; import { useContactSwitchStyles } from './ShareInput.styles'; interface Props { labels: Labels['add']; } const ContactSwitch = ({ labels }: Props): JSX.Element => { const { classes } = useContactSwitchStyles(); const { t } = useTranslation(); const [contactType, setContactType] = useAtom(contactTypeAtom); const change = (event: React.ChangeEvent): void => { setContactType(event.target.value as ContactType); }; return ( <> {t(labels.title)} } label={labels.contact} value={ContactType.Contact} /> } label={labels.contactGroup} value={ContactType.ContactGroup} /> ); }; export default ContactSwitch;