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

25 lines
610 B
TypeScript
Raw Normal View History

2020-05-22 14:38:19 +02:00
import React, { ReactElement } from 'react'
2018-07-21 23:30:16 +02:00
import { Link } from 'gatsby'
import * as stylesMore from './More.module.css'
import * as styles from './LinkActions.module.css'
2019-12-14 15:46:43 +01:00
import Icon from '../../atoms/Icon'
2018-07-19 16:49:20 +02:00
2019-10-02 13:35:50 +02:00
const PostLinkActions = ({
linkurl,
slug
}: {
linkurl?: string
slug: string
2020-05-22 14:38:19 +02:00
}): ReactElement => (
<aside className={styles.postLinkActions}>
<a className={stylesMore.postMore} href={linkurl}>
2019-11-15 22:10:53 +01:00
Go to source <Icon name="ExternalLink" />
2018-07-19 16:49:20 +02:00
</a>
2018-08-08 22:26:42 +02:00
<Link to={slug} rel="tooltip" title="Permalink">
2019-11-15 22:10:53 +01:00
<Icon name="Link" />
2018-07-21 23:30:16 +02:00
</Link>
2019-11-15 22:10:53 +01:00
</aside>
2018-07-19 16:49:20 +02:00
)
export default PostLinkActions