import { Text, HStack, Box, Icon, IconButton, useColorModeValue, TextProps, BoxProps, } from "@chakra-ui/react"; import React from "react"; import { Notification } from "@strata-foundation/react"; import toast from "react-hot-toast"; import { BsClipboard } from "react-icons/bs"; export function CopyBlackBox({ text, ...rest }: { text: string } & BoxProps ) { return ( {text} { navigator.clipboard.writeText(text); toast.custom((t) => ( toast.dismiss(t.id)} /> )); }} icon={} /> ); }