Create JS disabled alert component

This commit is contained in:
regalijan 2023-10-19 16:50:27 -04:00
parent b6c6967db0
commit 7e8fb126c4
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

18
components/NoJSAlert.tsx Normal file
View File

@ -0,0 +1,18 @@
import {
Alert,
AlertDescription,
AlertIcon,
AlertTitle,
} from "@chakra-ui/react";
export default function () {
return (
<Alert status="error">
<AlertIcon />
<AlertTitle>JavaScript Disabled!</AlertTitle>
<AlertDescription>
Some features of this page may not work.
</AlertDescription>
</Alert>
);
}