import { Box, Link, Text, useColorModeValue } from "@chakra-ui/react"; import { useRouter } from "next/router"; import { FiAlertTriangle } from "react-icons/fi"; import { IconType } from "react-icons/lib"; type EmptyStateProps = { text: string; icon: IconType; }; export const EmptyState = (props: EmptyStateProps) => { const backgroundColor = useColorModeValue("white", "gray.800"); const router = useRouter(); return ( {props.text} router.back()} color="blue.500" textUnderlineOffset="3px"> Click here to go back ); }; export const TaskEmptyState = () => { return ; };