import Container from "./container";
import cn from "classnames";
import { EXAMPLE_PATH } from "@/lib/constants";
type AlertProps = {
preview: boolean;
};
const Alert = (props: AlertProps) => {
const { preview } = props;
return (
{preview ? (
<>
This page is a preview.{" "}
Click here
{" "}
to exit preview mode.
>
) : (
<>
The source code for this blog is{" "}
available on GitHub
.
>
)}