mirror of https://github.com/kremalicious/blog.git
26 lines
661 B
TypeScript
26 lines
661 B
TypeScript
import React from 'react'
|
|
import { Link } from 'gatsby'
|
|
import { ReactComponent as Forward } from '../../images/forward.svg'
|
|
import { ReactComponent as Infinity } from '../../images/infinity.svg'
|
|
import styles from './PostLinkActions.module.scss'
|
|
import stylesPostMore from './PostMore.module.scss'
|
|
|
|
const PostLinkActions = ({
|
|
linkurl,
|
|
slug
|
|
}: {
|
|
linkurl?: string
|
|
slug: string
|
|
}) => (
|
|
<div className={styles.postLinkActions}>
|
|
<a className={stylesPostMore.postMore} href={linkurl}>
|
|
Go to source <Forward />
|
|
</a>
|
|
<Link to={slug} rel="tooltip" title="Permalink">
|
|
<Infinity />
|
|
</Link>
|
|
</div>
|
|
)
|
|
|
|
export default PostLinkActions
|