-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintro.tsx
More file actions
27 lines (23 loc) · 699 Bytes
/
Copy pathintro.tsx
File metadata and controls
27 lines (23 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"use client";
import { setCookie } from "cookies-next";
import { About } from "@/app/(marketing)/about/component";
import { INTRO_SEEN } from "@/lib/storage-keys";
import { cn } from "@/lib/utils";
import { dialogProse } from "./dialog-prose";
import { Dialog, DialogContent } from "./ui/dialog";
export function Intro({ defaultOpen }: { defaultOpen: boolean }) {
return (
<Dialog
defaultOpen={defaultOpen}
onOpenChange={(value) => {
if (!value) {
setCookie(INTRO_SEEN, "true");
}
}}
>
<DialogContent initialFocus={() => null} className={cn(...dialogProse, "w-157 pt-2")}>
<About />
</DialogContent>
</Dialog>
);
}