mirror of https://github.com/kremalicious/blog.git
20 lines
404 B
TypeScript
20 lines
404 B
TypeScript
import React, { ReactElement } from 'react'
|
|
import Time from '../atoms/Time'
|
|
import * as styles from './PostDate.module.css'
|
|
|
|
export default function PostDate({
|
|
date,
|
|
updated
|
|
}: {
|
|
date: string
|
|
updated?: string
|
|
}): ReactElement {
|
|
return (
|
|
<div className={styles.time}>
|
|
<Time date={date} />
|
|
{updated && ' • updated '}
|
|
{updated && <Time date={updated} />}
|
|
</div>
|
|
)
|
|
}
|