1- " use client"
1+ ' use client' ;
22
3- import * as React from " react"
4- import * as AlertDialogPrimitive from " @radix-ui/react-alert-dialog"
3+ import * as React from ' react' ;
4+ import * as AlertDialogPrimitive from ' @radix-ui/react-alert-dialog' ;
55
6- import { cn } from " @/lib/utils"
7- import { buttonVariants } from " @/components/ui/button"
6+ import { cn } from ' @/lib/utils' ;
7+ import { buttonVariants } from ' @/components/ui/button' ;
88
99function AlertDialog ( {
1010 ...props
1111} : React . ComponentProps < typeof AlertDialogPrimitive . Root > ) {
12- return < AlertDialogPrimitive . Root data-slot = "alert-dialog" { ...props } />
12+ return < AlertDialogPrimitive . Root data-slot = "alert-dialog" { ...props } /> ;
1313}
1414
1515function AlertDialogTrigger ( {
1616 ...props
1717} : React . ComponentProps < typeof AlertDialogPrimitive . Trigger > ) {
1818 return (
1919 < AlertDialogPrimitive . Trigger data-slot = "alert-dialog-trigger" { ...props } />
20- )
20+ ) ;
2121}
2222
2323function AlertDialogPortal ( {
2424 ...props
2525} : React . ComponentProps < typeof AlertDialogPrimitive . Portal > ) {
2626 return (
2727 < AlertDialogPrimitive . Portal data-slot = "alert-dialog-portal" { ...props } />
28- )
28+ ) ;
2929}
3030
3131function AlertDialogOverlay ( {
@@ -36,12 +36,12 @@ function AlertDialogOverlay({
3636 < AlertDialogPrimitive . Overlay
3737 data-slot = "alert-dialog-overlay"
3838 className = { cn (
39- " data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50" ,
39+ ' data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50' ,
4040 className
4141 ) }
4242 { ...props }
4343 />
44- )
44+ ) ;
4545}
4646
4747function AlertDialogContent ( {
@@ -54,42 +54,42 @@ function AlertDialogContent({
5454 < AlertDialogPrimitive . Content
5555 data-slot = "alert-dialog-content"
5656 className = { cn (
57- " bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg" ,
57+ ' bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg' ,
5858 className
5959 ) }
6060 { ...props }
6161 />
6262 </ AlertDialogPortal >
63- )
63+ ) ;
6464}
6565
6666function AlertDialogHeader ( {
6767 className,
6868 ...props
69- } : React . ComponentProps < " div" > ) {
69+ } : React . ComponentProps < ' div' > ) {
7070 return (
7171 < div
7272 data-slot = "alert-dialog-header"
73- className = { cn ( " flex flex-col gap-2 text-center sm:text-left" , className ) }
73+ className = { cn ( ' flex flex-col gap-2 text-center sm:text-left' , className ) }
7474 { ...props }
7575 />
76- )
76+ ) ;
7777}
7878
7979function AlertDialogFooter ( {
8080 className,
8181 ...props
82- } : React . ComponentProps < " div" > ) {
82+ } : React . ComponentProps < ' div' > ) {
8383 return (
8484 < div
8585 data-slot = "alert-dialog-footer"
8686 className = { cn (
87- " flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" ,
87+ ' flex flex-col-reverse gap-2 sm:flex-row sm:justify-end' ,
8888 className
8989 ) }
9090 { ...props }
9191 />
92- )
92+ ) ;
9393}
9494
9595function AlertDialogTitle ( {
@@ -99,10 +99,10 @@ function AlertDialogTitle({
9999 return (
100100 < AlertDialogPrimitive . Title
101101 data-slot = "alert-dialog-title"
102- className = { cn ( " text-lg font-semibold" , className ) }
102+ className = { cn ( ' text-lg font-semibold' , className ) }
103103 { ...props }
104104 />
105- )
105+ ) ;
106106}
107107
108108function AlertDialogDescription ( {
@@ -112,10 +112,10 @@ function AlertDialogDescription({
112112 return (
113113 < AlertDialogPrimitive . Description
114114 data-slot = "alert-dialog-description"
115- className = { cn ( " text-muted-foreground text-sm" , className ) }
115+ className = { cn ( ' text-muted-foreground text-sm' , className ) }
116116 { ...props }
117117 />
118- )
118+ ) ;
119119}
120120
121121function AlertDialogAction ( {
@@ -127,7 +127,7 @@ function AlertDialogAction({
127127 className = { cn ( buttonVariants ( ) , className ) }
128128 { ...props }
129129 />
130- )
130+ ) ;
131131}
132132
133133function AlertDialogCancel ( {
@@ -136,10 +136,10 @@ function AlertDialogCancel({
136136} : React . ComponentProps < typeof AlertDialogPrimitive . Cancel > ) {
137137 return (
138138 < AlertDialogPrimitive . Cancel
139- className = { cn ( buttonVariants ( { variant : " outline" } ) , className ) }
139+ className = { cn ( buttonVariants ( { variant : ' outline' } ) , className ) }
140140 { ...props }
141141 />
142- )
142+ ) ;
143143}
144144
145145export {
@@ -154,4 +154,4 @@ export {
154154 AlertDialogDescription ,
155155 AlertDialogAction ,
156156 AlertDialogCancel ,
157- }
157+ } ;
0 commit comments