1
- "use client"
1
+ // SPDX-FileCopyrightText: 2025 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
2
+ //
3
+ // SPDX-License-Identifier: Apache-2.0
2
4
3
- import * as React from "react"
4
- import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"
5
- import { type VariantProps } from "class-variance-authority"
5
+ "use client" ;
6
6
7
- import { cn } from "@/lib/utils"
8
- import { toggleVariants } from "@/components/ui/toggle"
7
+ import * as React from "react" ;
8
+ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group" ;
9
+ import { type VariantProps } from "class-variance-authority" ;
10
+
11
+ import { cn } from "@/lib/utils" ;
12
+ import { toggleVariants } from "@/components/ui/toggle" ;
9
13
10
14
const ToggleGroupContext = React . createContext <
11
15
VariantProps < typeof toggleVariants >
12
16
> ( {
13
17
size : "default" ,
14
18
variant : "default" ,
15
- } )
19
+ } ) ;
16
20
17
21
function ToggleGroup ( {
18
22
className,
@@ -37,7 +41,7 @@ function ToggleGroup({
37
41
{ children }
38
42
</ ToggleGroupContext . Provider >
39
43
</ ToggleGroupPrimitive . Root >
40
- )
44
+ ) ;
41
45
}
42
46
43
47
function ToggleGroupItem ( {
@@ -48,7 +52,7 @@ function ToggleGroupItem({
48
52
...props
49
53
} : React . ComponentProps < typeof ToggleGroupPrimitive . Item > &
50
54
VariantProps < typeof toggleVariants > ) {
51
- const context = React . useContext ( ToggleGroupContext )
55
+ const context = React . useContext ( ToggleGroupContext ) ;
52
56
53
57
return (
54
58
< ToggleGroupPrimitive . Item
@@ -67,7 +71,7 @@ function ToggleGroupItem({
67
71
>
68
72
{ children }
69
73
</ ToggleGroupPrimitive . Item >
70
- )
74
+ ) ;
71
75
}
72
76
73
- export { ToggleGroup , ToggleGroupItem }
77
+ export { ToggleGroup , ToggleGroupItem } ;
0 commit comments