({ error })
| 3 | import { useSelectContext } from './context'; |
| 4 | |
| 5 | export const SelectError: FC<{ error?: string }> = ({ error }) => { |
| 6 | const { |
| 7 | ids: { errorId }, |
| 8 | } = useSelectContext(); |
| 9 | if (!error) { |
| 10 | return null; |
| 11 | } |
| 12 | return ( |
| 13 | <p id={errorId} className="text-accent-red text-xs select-none"> |
| 14 | {error} |
| 15 | </p> |
| 16 | ); |
| 17 | }; |
nothing calls this directly
no test coverage detected