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