gallery page updated

This commit is contained in:
tmshv committed 2019-10-17 15:25:23 +03:00
1 parent 237a67de01
commit 2378b4476e
3 files changed
+45 -19

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import * as React from 'react'
import { dateFormat } from '../../lib/date'
export interface IPageHeaderProps {
tags?: string[]
date?: Date
title: string
}
export const PageHeader: React.FC<IPageHeaderProps> = props => (
<header className="Article-Head">
<h1>{props.title}</h1>
{!props.date ? null : (
<p className="date">{dateFormat(props.date)}</p>
)}
{/* {!(tags.length) ? null : (
<TagList tags={tags} />
)} */}
</header>
)