import { Trans, useTranslation } from "next-i18next"; import { usePlausible } from "next-plausible"; import * as React from "react"; import Button from "@/components/button"; import Bell from "@/components/icons/bell.svg"; import BellCrossed from "@/components/icons/bell-crossed.svg"; import Tooltip from "../tooltip"; import { usePoll } from "../use-poll"; import { useUpdatePollMutation } from "./mutations"; export interface NotificationsToggleProps {} const NotificationsToggle: React.VoidFunctionComponent = () => { const poll = usePoll(); const { t } = useTranslation("app"); const [isUpdatingNotifications, setIsUpdatingNotifications] = React.useState(false); const { mutate: updatePollMutation } = useUpdatePollMutation(); const plausible = usePlausible(); return (
Notifications are on
), }} />
) : ( "Notifications are off" ) ) : ( "You need to verify your email to turn on notifications" ) } >