import { THEME } from '~/assets/global' import styles from '~/styles/TitleDescription.module.css' const TitleDescription = ({ date }: { date?: number }) => { return ( by  {THEME.author.url ? ( {THEME.author.name} ) : ( {THEME.author.name} )} {date ? ( {new Date(date).toLocaleDateString([], { year: 'numeric', month: 'long', day: 'numeric', weekday: 'short' })} ) : null} ) } export default TitleDescription