1- import * as React from "react"
2- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"
1+ import * as React from "react" ;
2+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog" ;
33
4- import { cn } from "@/lib/utils"
5- import { buttonVariants } from "@/components/ui/button"
4+ import { cn } from "@/lib/utils" ;
5+ import { buttonVariants } from "@/components/ui/button" ;
66
7- function AlertDialog ( {
8- ...props
9- } : React . ComponentProps < typeof AlertDialogPrimitive . Root > ) {
10- return < AlertDialogPrimitive . Root data-slot = "alert-dialog" { ...props } />
7+ function AlertDialog ( { ...props } : React . ComponentProps < typeof AlertDialogPrimitive . Root > ) {
8+ return < AlertDialogPrimitive . Root data-slot = "alert-dialog" { ...props } /> ;
119}
1210
13- function AlertDialogTrigger ( {
14- ...props
15- } : React . ComponentProps < typeof AlertDialogPrimitive . Trigger > ) {
16- return (
17- < AlertDialogPrimitive . Trigger data-slot = "alert-dialog-trigger" { ...props } />
18- )
11+ function AlertDialogTrigger ( { ...props } : React . ComponentProps < typeof AlertDialogPrimitive . Trigger > ) {
12+ return < AlertDialogPrimitive . Trigger data-slot = "alert-dialog-trigger" { ...props } /> ;
1913}
2014
21- function AlertDialogPortal ( {
22- ...props
23- } : React . ComponentProps < typeof AlertDialogPrimitive . Portal > ) {
24- return (
25- < AlertDialogPrimitive . Portal data-slot = "alert-dialog-portal" { ...props } />
26- )
15+ function AlertDialogPortal ( { ...props } : React . ComponentProps < typeof AlertDialogPrimitive . Portal > ) {
16+ return < AlertDialogPrimitive . Portal data-slot = "alert-dialog-portal" { ...props } /> ;
2717}
2818
29- function AlertDialogOverlay ( {
30- className,
31- ...props
32- } : React . ComponentProps < typeof AlertDialogPrimitive . Overlay > ) {
19+ function AlertDialogOverlay ( { className, ...props } : React . ComponentProps < typeof AlertDialogPrimitive . Overlay > ) {
3320 return (
3421 < AlertDialogPrimitive . Overlay
3522 data-slot = "alert-dialog-overlay"
@@ -39,13 +26,10 @@ function AlertDialogOverlay({
3926 ) }
4027 { ...props }
4128 />
42- )
29+ ) ;
4330}
4431
45- function AlertDialogContent ( {
46- className,
47- ...props
48- } : React . ComponentProps < typeof AlertDialogPrimitive . Content > ) {
32+ function AlertDialogContent ( { className, ...props } : React . ComponentProps < typeof AlertDialogPrimitive . Content > ) {
4933 return (
5034 < AlertDialogPortal >
5135 < AlertDialogOverlay />
@@ -58,49 +42,37 @@ function AlertDialogContent({
5842 { ...props }
5943 />
6044 </ AlertDialogPortal >
61- )
45+ ) ;
6246}
6347
64- function AlertDialogHeader ( {
65- className,
66- ...props
67- } : React . ComponentProps < "div" > ) {
48+ function AlertDialogHeader ( { className, ...props } : React . ComponentProps < "div" > ) {
6849 return (
6950 < div
7051 data-slot = "alert-dialog-header"
7152 className = { cn ( "flex flex-col gap-2 text-center sm:text-left" , className ) }
7253 { ...props }
7354 />
74- )
55+ ) ;
7556}
7657
77- function AlertDialogFooter ( {
78- className,
79- ...props
80- } : React . ComponentProps < "div" > ) {
58+ function AlertDialogFooter ( { className, ...props } : React . ComponentProps < "div" > ) {
8159 return (
8260 < div
8361 data-slot = "alert-dialog-footer"
84- className = { cn (
85- "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" ,
86- className
87- ) }
62+ className = { cn ( "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" , className ) }
8863 { ...props }
8964 />
90- )
65+ ) ;
9166}
9267
93- function AlertDialogTitle ( {
94- className,
95- ...props
96- } : React . ComponentProps < typeof AlertDialogPrimitive . Title > ) {
68+ function AlertDialogTitle ( { className, ...props } : React . ComponentProps < typeof AlertDialogPrimitive . Title > ) {
9769 return (
9870 < AlertDialogPrimitive . Title
9971 data-slot = "alert-dialog-title"
10072 className = { cn ( "text-lg font-semibold" , className ) }
10173 { ...props }
10274 />
103- )
75+ ) ;
10476}
10577
10678function AlertDialogDescription ( {
@@ -113,31 +85,15 @@ function AlertDialogDescription({
11385 className = { cn ( "text-muted-foreground text-sm" , className ) }
11486 { ...props }
11587 />
116- )
88+ ) ;
11789}
11890
119- function AlertDialogAction ( {
120- className,
121- ...props
122- } : React . ComponentProps < typeof AlertDialogPrimitive . Action > ) {
123- return (
124- < AlertDialogPrimitive . Action
125- className = { cn ( buttonVariants ( ) , className ) }
126- { ...props }
127- />
128- )
91+ function AlertDialogAction ( { className, ...props } : React . ComponentProps < typeof AlertDialogPrimitive . Action > ) {
92+ return < AlertDialogPrimitive . Action className = { cn ( buttonVariants ( ) , className ) } { ...props } /> ;
12993}
13094
131- function AlertDialogCancel ( {
132- className,
133- ...props
134- } : React . ComponentProps < typeof AlertDialogPrimitive . Cancel > ) {
135- return (
136- < AlertDialogPrimitive . Cancel
137- className = { cn ( buttonVariants ( { variant : "outline" } ) , className ) }
138- { ...props }
139- />
140- )
95+ function AlertDialogCancel ( { className, ...props } : React . ComponentProps < typeof AlertDialogPrimitive . Cancel > ) {
96+ return < AlertDialogPrimitive . Cancel className = { cn ( buttonVariants ( { variant : "outline" } ) , className ) } { ...props } /> ;
14197}
14298
14399export {
@@ -152,4 +108,4 @@ export {
152108 AlertDialogDescription ,
153109 AlertDialogAction ,
154110 AlertDialogCancel ,
155- }
111+ } ;
0 commit comments