silverwolf-x's picture
download
raw
1.25 kB
import Container from "./container";
import cn from "classnames";
import { EXAMPLE_PATH } from "../lib/constants";
type Props = {
preview?: boolean;
};
export default function Alert({ preview }: Props) {
return (
<div
className={cn("border-b", {
"bg-accent-7 border-accent-7 text-white": preview,
"bg-accent-1 border-accent-2": !preview,
})}
>
<Container>
<div className="py-2 text-center text-sm">
{preview ? (
<>
This is a page preview.{" "}
<a
href="/api/exit-preview"
className="underline hover:text-cyan duration-200 transition-colors"
>
Click here
</a>{" "}
to exit preview mode.
</>
) : (
<>
The source code for this blog is{" "}
<a
href={`https://github.com/vercel/next.js/tree/canary/examples/${EXAMPLE_PATH}`}
className="underline hover:text-success duration-200 transition-colors"
>
available on GitHub
</a>
.
</>
)}
</div>
</Container>
</div>
);
}

Xet Storage Details

Size:
1.25 kB
·
Xet hash:
542476c5f4b8a0d1aecef478d569810ecf02b63facf20db9a82191cb9dd89fc8

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.