import { Trans, useTranslation } from "next-i18next"; import * as React from "react"; import { useDayjs } from "../../utils/dayjs"; import Badge from "../badge"; import { usePoll } from "../poll-context"; import Tooltip from "../tooltip"; const PollSubheader: React.VoidFunctionComponent = () => { const { poll, admin } = usePoll(); const { t } = useTranslation("app"); const { dayjs } = useDayjs(); return (