Files
hudozka/src/components/Page/index.tsx
T
2020-03-03 02:25:37 +03:00

39 lines
854 B
TypeScript

import { Share } from '../Share'
import { Html } from '../Html'
import { PageMeta } from '../PageMeta'
import { ITag } from 'src/types'
export interface IPageProps {
children: string
date: Date
tags: ITag[]
}
export const Page: React.FC<IPageProps> = props => (
<div className={'Article'}>
<style jsx>{`
hr {
border: 1px solid black;
margin-top: var(--size-m);
margin-bottom: var(--size-m);
}
`}</style>
<div className={'Article-Body'}>
<Html
html={props.children}
/>
</div>
<hr />
<Share />
<PageMeta
style={{
marginTop: 'var(--size-m)',
}}
date={props.date}
tags={props.tags}
/>
</div>
)