diff --git a/src/components/error.tsx b/src/components/error.tsx new file mode 100644 index 0000000..a31bf50 --- /dev/null +++ b/src/components/error.tsx @@ -0,0 +1,47 @@ +import { ErrorProps } from "@/interfaces/components"; +import { + Button, + Center, + Heading, + HStack, + Text, + VStack, +} from "@chakra-ui/react"; +import { ArrowClockwise, ArrowSquareOut, Warning } from "phosphor-react"; +import { useRouter } from "next/router"; +import CustomLink from "@/common/link"; + +const Error = (props: ErrorProps) => { + const router = useRouter(); + + const handleRefresh = () => { + router.reload(); + }; + + return ( +