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'
|
2022-11-11 03:31:54 +01:00
|
|
|
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 => (
|
2022-11-11 03:31:54 +01:00
|
|
|
<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
|