json-theme-even-fork/components/duration.js

7 lines
200 B
JavaScript
Raw Normal View History

import html from '../utils/html.js'
import Date from './date.js'
export default function Duration(startDate, endDate) {
return html`${Date(startDate)} ${endDate ? Date(endDate) : 'Present'}`
}