portfolio/src/components/Vcard/index.tsx

24 lines
519 B
TypeScript
Raw Permalink Normal View History

'use client'
import { MouseEvent } from 'react'
2024-02-05 10:29:00 +01:00
import meta from '@content/meta.json'
export default function Vcard() {
const handleAddressbookClick = (e: MouseEvent) => {
e.preventDefault()
2024-02-05 16:16:18 +01:00
import('./_utils').then(({ init }) => init())
}
return (
<a
// href is kinda fake, only there for usability
// so user knows what to expect when hovering the link before clicking
href={meta.addressbook}
onClick={handleAddressbookClick}
>
Add to addressbook
</a>
)
}