({ label })
| 3 | import { useSelectContext } from './context'; |
| 4 | |
| 5 | export const SelectLabel: FC<{ label?: string }> = ({ label }) => { |
| 6 | const { |
| 7 | ids: { labelId, selectId }, |
| 8 | } = useSelectContext(); |
| 9 | if (!label) { |
| 10 | return null; |
| 11 | } |
| 12 | return ( |
| 13 | <label |
| 14 | htmlFor={selectId} |
| 15 | id={labelId} |
| 16 | className="text-foreground text-sm font-semibold" |
| 17 | > |
| 18 | {label} |
| 19 | </label> |
| 20 | ); |
| 21 | }; |
nothing calls this directly
no test coverage detected