Icons using npm package instead of svgs. Props and types. Signed-off-by: Martin Berg Alstad <git@martials.no>
17 lines
347 B
Plaintext
17 lines
347 B
Plaintext
---
|
|
import ExternalLink from "./ExternalLink.astro"
|
|
import * as m from "@/paraglide/messages"
|
|
import Gitea from "../icons/Gitea.astro"
|
|
interface Props {
|
|
href: string
|
|
}
|
|
const { href } = Astro.props
|
|
---
|
|
|
|
<div>
|
|
<ExternalLink href={href} class="flex items-center gap-1">
|
|
<Gitea class="w-6 h-6" />
|
|
{m.sourceCode()}
|
|
</ExternalLink>
|
|
</div>
|