1
0
Fork 0
blog/src/components/layouts/Post/Actions.astro

47 lines
872 B
Plaintext

---
import config from '@config/blog.config'
import styles from './Actions.module.css'
import Action from './Action.astro'
import { Mastodon, Bitcoin, Github } from '@images/components'
type Props = {
githubLink: string
}
const { githubLink } = Astro.props
const actions = [
{
title: 'Have a comment?',
text: 'Hit me up @krema@mas.to',
url: config.author.mastodon,
icon: Mastodon
},
{
title: 'Found something useful?',
text: 'Say thanks with BTC or ETH',
url: '/thanks',
icon: Bitcoin
},
{
title: 'Edit on GitHub',
text: 'Contribute to this post',
url: githubLink,
icon: Github
}
]
---
<section class={styles.actions}>
{
actions.map((action) => (
<Action
title={action.title}
text={action.text}
url={action.url}
icon={action.icon}
/>
))
}
</section>