mirror of
https://github.com/kremalicious/blog.git
synced 2024-06-10 11:35:10 +02:00
25 lines
597 B
TypeScript
25 lines
597 B
TypeScript
import React, { ReactElement } from 'react'
|
|
import { Link } from 'gatsby'
|
|
import { postMore } from './More.module.css'
|
|
import { postLinkActions } from './LinkActions.module.css'
|
|
import Icon from '../../atoms/Icon'
|
|
|
|
const PostLinkActions = ({
|
|
linkurl,
|
|
slug
|
|
}: {
|
|
linkurl?: string
|
|
slug: string
|
|
}): ReactElement => (
|
|
<aside className={postLinkActions}>
|
|
<a className={postMore} href={linkurl}>
|
|
Go to source <Icon name="ExternalLink" />
|
|
</a>
|
|
<Link to={slug} rel="tooltip" title="Permalink">
|
|
<Icon name="Link" />
|
|
</Link>
|
|
</aside>
|
|
)
|
|
|
|
export default PostLinkActions
|