feat: move to nextjs

This commit is contained in:
apoorvlathey
2024-05-07 00:18:18 +10:00
parent 602ae4389e
commit 032785a316
49 changed files with 9867 additions and 8425 deletions

View File

@@ -0,0 +1,25 @@
import { Button, useToast } from "@chakra-ui/react";
import { CopyIcon } from "@chakra-ui/icons";
const CopyToClipboard = ({ txt }: { txt: string }) => {
const toast = useToast();
return (
<Button
onClick={() => {
navigator.clipboard.writeText(txt);
toast({
title: "Copied to clipboard",
status: "success",
isClosable: true,
duration: 1000,
});
}}
size="sm"
>
<CopyIcon />
</Button>
);
};
export default CopyToClipboard;