'use client'; import { ActionIcon, CopyButton, Tooltip } from '@mantine/core'; import { notifications } from '@mantine/notifications'; import { MdIosShare } from 'react-icons/md'; interface Props { handle: string; rkey: string; } export default function CollectionShareHeaderButton(props: Props) { const shareLink = `${process.env.NEXT_PUBLIC_APP_URL}/profile/${props.handle}/collections/${props.rkey}`; return ( {({ copied, copy }) => ( { e.stopPropagation(); copy(); if (copied) return; notifications.show({ message: 'Link copied!', position: 'top-center', id: `${props.handle}/${props.rkey}`, }); }} > )} ); }