import { formatDate } from "@/lib/admin/utils";

interface DateDisplayProps {
  date: string;
  format?: 'date' | 'datetime' | 'relative';
  className?: string;
}

export function DateDisplay({ date, format = 'datetime', className }: DateDisplayProps) {
  return (
    <time dateTime={date} className={className}>
      {formatDate(date, format)}
    </time>
  );
}
