1
0
Fork 0
blog/src/components/Post/PostMore.tsx

14 lines
360 B
TypeScript
Raw Normal View History

2018-08-08 22:26:42 +02:00
import React from 'react'
import { Link } from 'gatsby'
import styles from './PostMore.module.scss'
2018-09-24 22:28:07 +02:00
import { ReactComponent as Caret } from '../../images/chevron-right.svg'
2018-08-08 22:26:42 +02:00
2019-10-02 13:35:50 +02:00
const PostMore = ({ to, children }: { to: string; children: string }) => (
2018-08-08 22:26:42 +02:00
<Link className={styles.postMore} to={to}>
{children}
<Caret />
</Link>
)
export default PostMore