import { Button, Flex, Icon, IconName, Menu } from '@/components'; import { env } from '@/constants'; import { FleekERC721 } from '@/integrations/ethereum/contracts'; import { forwardStyledRef } from '@/theme'; import { AppLog } from '@/utils'; import { IndexedNFA } from '../../indexed-nfa.context'; import { IndexedNFAStyles as S } from '../../indexed-nfa.styles'; const openseaLink = `https://${ env.environment === 'development' ? 'testnets' : '' }.opensea.io/assets/${ env.environment === 'development' ? 'goerli' : 'ethereum' }/${FleekERC721.address}`; type CustomButtonProps = { icon: IconName; }; const CustomButon = forwardStyledRef( ({ icon, ...props }, ref) => ( ) ); type MenuItemProps = { label: string; iconName: IconName; href: string; }; const MenuItem: React.FC = ({ label, iconName, href, }: MenuItemProps) => { return ( {label} ); }; export const ButtonsFragment: React.FC = () => { const { nfa } = IndexedNFA.useContext(); const handleShareOnClick = (): void => { const location = window.location.href; navigator.clipboard.writeText(location); AppLog.successToast('Link copied to clipboard'); }; return ( {/* TODO remove span and render as fragment */} {/* TODO add tooltip to copy link */} ); };