import type { ReactNode } from 'react'; import { Checkbox } from 'antd'; import { useTranslation } from 'react-i18next'; interface Props { label: string; checked: boolean; onToggle: () => void; children?: ReactNode; } export function NotificationEvent({ label, checked, onToggle, children }: Props) { const { t } = useTranslation(); return (
{t(label)} {checked && children &&
{children}
}
); }