'use client' import { useTranslations } from 'next-intl' interface ShareButtonsProps { displayName: string } export function ShareButtons({ displayName }: ShareButtonsProps) { const t = useTranslations('project') const handleShare = () => { const url = encodeURIComponent(window.location.href) const text = encodeURIComponent(t('shareTweetText', { name: displayName })) window.open(`https://twitter.com/intent/tweet?url=${url}&text=${text}`, '_blank') } const handleCopyLink = () => { navigator.clipboard.writeText(window.location.href) } return (
{t('feedbackQuestion')}
) }