@@ -30,6 +30,20 @@ export default {
30
30
} ,
31
31
} satisfies Meta < typeof SidebarItem > ;
32
32
33
+ const sidebarItemActions = (
34
+ < SidebarItemActions >
35
+ < SidebarItemAction aria-label = 'accept' secondary success icon = 'phone' />
36
+ < SidebarItemAction
37
+ aria-label = 'cancel'
38
+ secondary
39
+ danger
40
+ icon = 'circle-cross'
41
+ />
42
+ < SidebarItemAction aria-label = 'delete' secondary info icon = 'trash' />
43
+ < SidebarItemAction aria-label = 'accept' secondary icon = 'phone' />
44
+ </ SidebarItemActions >
45
+ ) ;
46
+
33
47
export const Default : StoryFn < typeof SidebarItem > = ( ) => (
34
48
< >
35
49
< SidebarItem >
@@ -50,14 +64,7 @@ export const Default: StoryFn<typeof SidebarItem> = () => (
50
64
</ SidebarItemTitle >
51
65
</ SidebarItemWrapper >
52
66
</ SidebarItemContent >
53
- < SidebarItemContainer >
54
- < SidebarItemActions >
55
- < SidebarItemAction secondary success icon = 'phone' />
56
- < SidebarItemAction secondary danger icon = 'circle-cross' />
57
- < SidebarItemAction secondary info icon = 'trash' />
58
- < SidebarItemAction secondary icon = 'phone' />
59
- </ SidebarItemActions >
60
- </ SidebarItemContainer >
67
+ < SidebarItemContainer > { sidebarItemActions } </ SidebarItemContainer >
61
68
</ SidebarItem >
62
69
63
70
< SidebarItem highlighted is = 'a' >
@@ -75,14 +82,7 @@ export const Default: StoryFn<typeof SidebarItem> = () => (
75
82
< SidebarItemTitle > highlighted</ SidebarItemTitle >
76
83
</ SidebarItemWrapper >
77
84
</ SidebarItemContent >
78
- < SidebarItemContainer >
79
- < SidebarItemActions >
80
- < SidebarItemAction secondary success icon = 'phone' />
81
- < SidebarItemAction secondary danger icon = 'circle-cross' />
82
- < SidebarItemAction secondary info icon = 'trash' />
83
- < SidebarItemAction secondary icon = 'phone' />
84
- </ SidebarItemActions >
85
- </ SidebarItemContainer >
85
+ < SidebarItemContainer />
86
86
</ SidebarItem >
87
87
< SidebarItem selected is = 'a' >
88
88
< SidebarItemAvatar >
@@ -102,14 +102,7 @@ export const Default: StoryFn<typeof SidebarItem> = () => (
102
102
</ SidebarItemTitle >
103
103
</ SidebarItemWrapper >
104
104
</ SidebarItemContent >
105
- < SidebarItemContainer >
106
- < SidebarItemActions >
107
- < SidebarItemAction secondary success icon = 'phone' />
108
- < SidebarItemAction secondary danger icon = 'circle-cross' />
109
- < SidebarItemAction secondary info icon = 'trash' />
110
- < SidebarItemAction secondary icon = 'phone' />
111
- </ SidebarItemActions >
112
- </ SidebarItemContainer >
105
+ < SidebarItemContainer > { sidebarItemActions } </ SidebarItemContainer >
113
106
</ SidebarItem >
114
107
< SidebarItem is = 'a' >
115
108
< SidebarItemAvatar >
@@ -140,12 +133,7 @@ export const Default: StoryFn<typeof SidebarItem> = () => (
140
133
</ SidebarItemContent >
141
134
</ SidebarItemContent >
142
135
< SidebarItemContainer >
143
- < SidebarItemActions >
144
- < SidebarItemAction secondary success icon = 'phone' />
145
- < SidebarItemAction secondary danger icon = 'circle-cross' />
146
- < SidebarItemAction secondary info icon = 'trash' />
147
- < SidebarItemAction secondary icon = 'phone' />
148
- </ SidebarItemActions >
136
+ < SidebarItemContainer > { sidebarItemActions } </ SidebarItemContainer >
149
137
</ SidebarItemContainer >
150
138
</ SidebarItem >
151
139
</ >
0 commit comments