import type { SelectOption } from '@rocket.chat/fuselage'; import { Button, ButtonGroup } from '@rocket.chat/fuselage'; import { ContextualbarHeader, ContextualbarIcon, ContextualbarTitle, ContextualbarClose, ContextualbarScrollableContent, ContextualbarFooter, ContextualbarDialog, } from '@rocket.chat/ui-client'; import { useFormContext } from 'react-hook-form'; import { useTranslation } from 'react-i18next'; import NotificationPreferencesForm from './NotificationPreferencesForm'; export type NotificationPreferencesProps = { handleClose: () => void; handleSave: () => void; notificationOptions: { [key: string]: SelectOption[]; }; handlePlaySound: () => void; }; const NotificationPreferences = ({ handleClose, handleSave, notificationOptions, handlePlaySound }: NotificationPreferencesProps) => { const { t } = useTranslation(); const { formState: { isDirty, isSubmitting }, reset, } = useFormContext(); return ( {t('Notifications_Preferences')} {handleClose && } ); }; export default NotificationPreferences;