switched to approuter

This commit is contained in:
2025-08-18 13:10:47 -05:00
parent 525009d881
commit 5ab7c7853c
82 changed files with 5154 additions and 9772 deletions
+23
View File
@@ -0,0 +1,23 @@
import { format, parseISO } from 'date-fns';
import React from 'react';
interface DateFormatterProps {
dateString: string;
formatString?: string;
className?: string;
}
const DateFormatter: React.FC<DateFormatterProps> = ({
dateString,
formatString = 'MMMM d, yyyy',
className = ''
}) => {
const date = parseISO(dateString);
return (
<time dateTime={dateString} className={className}>
{format(date, formatString)}
</time>
);
};
export default DateFormatter;