From ee5cba3634300395a8db109f577c43d911471f74 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 3 Mar 2020 02:24:24 +0300 Subject: [PATCH] drop Article component --- src/components/Article/index.tsx | 55 -------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 src/components/Article/index.tsx diff --git a/src/components/Article/index.tsx b/src/components/Article/index.tsx deleted file mode 100644 index 90f4461c..00000000 --- a/src/components/Article/index.tsx +++ /dev/null @@ -1,55 +0,0 @@ -import { dateFormat } from 'src/lib/date' -import { Share } from '../Share' -import { TagList } from '../TagList' -import { ITag } from 'src/types' - -export type ArticleProps = { - date: string - title: string - tags: ITag[] - shareable: boolean -} - -type HeadProps = { - date: string - tags: ITag[] -} - -const Head: React.FC = ({ date, tags = [], children }) => ( -
- - -

{children}

- - {!date ? null : ( -

Опубликовано: {dateFormat(date)}

- )} - - {!tags.length ? null : ( - - )} -
-) - -export const Article: React.FC = ({ children, date, tags, title, shareable }) => ( -
- - {title} - - -
- {children} -
- - {!shareable ? null : ( - - )} -
-)