import { translationAtom } from "@/atoms/translations-atom"; import { turnOffNotificationsAtom } from "@/atoms/userSettingsAtom"; import { useAtom, useAtomValue } from "jotai"; const TurnOffNotificationsToggle = () => { const [turnOffNotifications, setTurnOffNotifications] = useAtom( turnOffNotificationsAtom, ); const t = useAtomValue(translationAtom); return (
{t("SETTINGS.TURN_OFF_NOTIFICATIONS.TITLE")}
{t("SETTINGS.TURN_OFF_NOTIFICATIONS.DESCRIPTION")}
{ setTurnOffNotifications(!turnOffNotifications); }} />