2024-02-01 19:59:51 +01:00
|
|
|
'use client'
|
|
|
|
|
2024-02-04 23:09:00 +01:00
|
|
|
import { MouseEvent } from 'react'
|
2024-02-05 10:29:00 +01:00
|
|
|
import meta from '@content/meta.json'
|
2022-11-16 00:14:59 +01:00
|
|
|
|
|
|
|
export default function Vcard() {
|
2024-02-04 23:09:00 +01:00
|
|
|
const handleAddressbookClick = (e: MouseEvent) => {
|
2022-11-16 00:14:59 +01:00
|
|
|
e.preventDefault()
|
|
|
|
|
2024-02-05 16:16:18 +01:00
|
|
|
import('./_utils').then(({ init }) => init())
|
2022-11-16 00:14:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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>
|
|
|
|
)
|
|
|
|
}
|