1
0
Fork 0
blog/src/components/templates/Post/More.tsx

20 lines
381 B
TypeScript
Raw Normal View History

2020-05-22 14:38:19 +02:00
import React, { ReactElement } from 'react'
2018-08-08 22:26:42 +02:00
import { Link } from 'gatsby'
2019-12-14 15:46:43 +01:00
import Icon from '../../atoms/Icon'
import * as styles from './More.module.css'
2018-08-08 22:26:42 +02:00
2020-05-22 14:38:19 +02:00
const PostMore = ({
to,
children
}: {
to: string
children: string
}): ReactElement => (
<Link className={styles.postMore} to={to}>
2018-08-08 22:26:42 +02:00
{children}
2019-11-15 22:10:53 +01:00
<Icon name="ChevronRight" />
2018-08-08 22:26:42 +02:00
</Link>
)
export default PostMore