import { Controller } from "react-hook-form" import { useTranslation } from "react-i18next" import IconTooltip from "../../../../components/molecules/icon-tooltip" import IndeterminateCheckbox from "../../../../components/molecules/indeterminate-checkbox" import { NestedForm } from "../../../../utils/nested-form" export type SendNotificationFormType = { send_notification: boolean } type Props = { form: NestedForm type: "return" | "swap" | "claim" } const SendNotificationForm = ({ form, type }: Props) => { const { t } = useTranslation() const { control, path } = form const subject = { return: t("send-notification-form-return", "return"), swap: t("send-notification-form-exchange", "exchange"), claim: t("send-notification-form-claim", "claim"), }[type] return ( { return (

{t( "send-notification-form-send-notifications", "Send notifications" )}

) }} /> ) } export default SendNotificationForm