import clsx from "clsx"; import { useDateTimeFormat } from "~/hooks/intl/useDateTimeFormat"; import { databaseTimestampToDate } from "~/utils/dates"; interface LocaleTimeProps { /** The date to render. Accepts a `Date` or a database timestamp (number), which is converted via `databaseTimestampToDate`. */ date: Date | number; /** Formatting options forwarded to `Intl.DateTimeFormat`. Combined with the user's locale and hour cycle preferences. */ options: Intl.DateTimeFormatOptions; /** Optional extra class names appended to the rendered `