({
item,
isCopied = false
}: {
item: IllustrationItemType;
isCopied?: boolean;
})
| 227 | } |
| 228 | |
| 229 | function IllustrationItem({ |
| 230 | item, |
| 231 | isCopied = false |
| 232 | }: { |
| 233 | item: IllustrationItemType; |
| 234 | isCopied?: boolean; |
| 235 | }) { |
| 236 | let Illustration = item.Component; |
| 237 | let ref = useRef(null); |
| 238 | // oxlint-disable react/react-compiler |
| 239 | return ( |
| 240 | <ListBoxItem |
| 241 | id={item.id} |
| 242 | value={item} |
| 243 | textValue={item.id} |
| 244 | className={itemStyle} |
| 245 | ref={ref} |
| 246 | style={pressScale(ref)}> |
| 247 | {isCopied ? <Checkmark /> : <Illustration />} |
| 248 | <div |
| 249 | className={style({ |
| 250 | display: 'flex', |
| 251 | alignItems: 'center', |
| 252 | padding: 4 |
| 253 | })}> |
| 254 | {isCopied ? 'Copied!' : item.id} |
| 255 | </div> |
| 256 | </ListBoxItem> |
| 257 | ); |
| 258 | // oxlint-enable react/react-compiler |
| 259 | } |
| 260 | |
| 261 | const cache = new Map(); |
| 262 |
nothing calls this directly
no test coverage detected