import { formatRelative } from "date-fns"; import * as React from "react"; import { Trans, useTranslation } from "next-i18next"; import Tooltip from "../tooltip"; import { usePoll } from "../use-poll"; export interface PollSubheaderProps {} const PollSubheader: React.VoidFunctionComponent = () => { const poll = usePoll(); const { t } = useTranslation("app"); return (
, }} />   {poll.role === "admin" ? ( poll.verified ? ( Verified ) : ( , }} />
} > Unverified ) ) : null}
 •  {formatRelative(new Date(poll.createdAt), new Date())} ); }; export default PollSubheader;