import clsx from "clsx" import { format } from "date-fns" import type { ComponentProps } from "react" export interface TimeProps extends Omit, "children"> { children: Parameters[0] dateTimeFormatStr?: string formatStr?: string } export const Time = ({ children, dateTimeFormatStr = "dd-MM-yyyy", formatStr = "PPP", className, ...props }: TimeProps) => ( ) Time.displayName = "Time"