({
label,
items,
w,
noBorder,
refine,
}: DropdownProps)
| 118 | }; |
| 119 | |
| 120 | const DropdownSimple = ({ |
| 121 | label, |
| 122 | items, |
| 123 | w, |
| 124 | noBorder, |
| 125 | refine, |
| 126 | }: DropdownProps) => { |
| 127 | const options = items.map((item) => ( |
| 128 | <Combobox.Option |
| 129 | value={item.value} |
| 130 | key={item.value} |
| 131 | active={item.isRefined} |
| 132 | > |
| 133 | {item.label ?? item.value} |
| 134 | </Combobox.Option> |
| 135 | )); |
| 136 | |
| 137 | return ( |
| 138 | <DropdownBase |
| 139 | label={label} |
| 140 | options={options} |
| 141 | refine={refine} |
| 142 | w={w} |
| 143 | noBorder={noBorder} |
| 144 | /> |
| 145 | ); |
| 146 | }; |
| 147 | |
| 148 | const DropdownCheckbox = ({ |
| 149 | label, |
nothing calls this directly
no outgoing calls
no test coverage detected