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