import QRCode from 'react-qr-code' import DialogModal from '#components/Templates/DialogModal' import { useShareLogic } from './hooks' import { ItemAvatar } from './ItemAvatar' import { ShareButton } from './ShareButton' import type { Item } from '#types/Item' interface QRModalProps { item: Item isOpen: boolean onClose: () => void } export function QRModal({ item, isOpen, onClose }: QRModalProps) { const { inviteLink } = useShareLogic(item) return (
{ e.stopPropagation() }} className='tw:text-center tw:p-4' >

Share your Profile to expand your Network!

{inviteLink}
) }