import { Tooltip } from "@medusajs/ui" import { useTranslation } from "react-i18next" import { PlaceholderCell } from "../placeholder-cell" import { useDate } from "../../../../../hooks/use-date" type DateCellProps = { date?: Date | string | null } export const DateCell = ({ date }: DateCellProps) => { const { getFullDate } = useDate() if (!date) { return } return (
{`${getFullDate({ date, includeTime: true, })}`} } > {getFullDate({ date, includeTime: false })}
) } export const DateHeader = () => { const { t } = useTranslation() return (
{t("fields.date")}
) }