(id?: string)
| 23 | } |
| 24 | |
| 25 | export default function useId(id?: string) { |
| 26 | // Inner id for accessibility usage. Only work in client side |
| 27 | const [innerId, setInnerId] = React.useState<string>(); |
| 28 | React.useEffect(() => { |
| 29 | setInnerId(`rc_select_${getUUID()}`); |
| 30 | }, []); |
| 31 | return id || innerId; |
| 32 | } |
no test coverage detected
searching dependent graphs…