import * as React from 'react';
import {
AlertDialog,
AlertDialogTrigger,
AlertDialogContent,
AlertDialogHeader,
AlertDialogTitle,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogCancel,
AlertDialogAction,
type AlertDialogContentProps,
} from '@/components/animate-ui/components/radix/alert-dialog';
import { Button } from '@/components/ui/button';
interface RadixAlertDialogDemoProps {
from: AlertDialogContentProps['from'];
}
export const RadixAlertDialogDemo = ({ from }: RadixAlertDialogDemoProps) => {
return (
<AlertDialog>
<AlertDialogTrigger asChild>
<Button variant="outline">Open Dialog</Button>
</AlertDialogTrigger>
<AlertDialogContent from={from} className="sm:max-w-[425px]">
<AlertDialogHeader>
<AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
<AlertDialogDescription>
This action cannot be undone. This will permanently delete your
account and remove your data from our servers.
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction>Continue</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
);
};