41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { CircleFadingPlusIcon } from "lucide-react"
|
|
|
|
import {
|
|
AlertDialog,
|
|
AlertDialogAction,
|
|
AlertDialogCancel,
|
|
AlertDialogContent,
|
|
AlertDialogDescription,
|
|
AlertDialogFooter,
|
|
AlertDialogHeader,
|
|
AlertDialogMedia,
|
|
AlertDialogTitle,
|
|
AlertDialogTrigger,
|
|
} from "@/styles/base-nova/ui/alert-dialog"
|
|
import { Button } from "@/styles/base-nova/ui/button"
|
|
|
|
export function AlertDialogWithMedia() {
|
|
return (
|
|
<AlertDialog>
|
|
<AlertDialogTrigger
|
|
render={<Button variant="outline">Share Project</Button>}
|
|
/>
|
|
<AlertDialogContent>
|
|
<AlertDialogHeader>
|
|
<AlertDialogMedia>
|
|
<CircleFadingPlusIcon />
|
|
</AlertDialogMedia>
|
|
<AlertDialogTitle>Share this project?</AlertDialogTitle>
|
|
<AlertDialogDescription>
|
|
Anyone with the link will be able to view and edit this project.
|
|
</AlertDialogDescription>
|
|
</AlertDialogHeader>
|
|
<AlertDialogFooter>
|
|
<AlertDialogCancel>Cancel</AlertDialogCancel>
|
|
<AlertDialogAction>Share</AlertDialogAction>
|
|
</AlertDialogFooter>
|
|
</AlertDialogContent>
|
|
</AlertDialog>
|
|
)
|
|
}
|