import type { ComponentProps } from 'react'; import { FormattedDate } from 'react-intl'; export const FormattedDateWrapper = ( props: ComponentProps & { className?: string }, ) => ( {(date) => ( )} ); const tryIsoString = (date?: string | number | Date): string => { if (!date) { return ''; } try { return new Date(date).toISOString(); } catch { return date.toString(); } };