()
| 24 | }); |
| 25 | |
| 26 | export const usePinInputContext = () => { |
| 27 | const context = useContext(PinInputContext); |
| 28 | |
| 29 | if (!context) { |
| 30 | throw new Error("The 'usePinInputContext' hook must be used within a '<PinInput />'"); |
| 31 | } |
| 32 | |
| 33 | return context; |
| 34 | }; |
| 35 | |
| 36 | interface RootProps extends ComponentPropsWithRef<"div"> { |
| 37 | size?: PinInputSize; |
no outgoing calls
no test coverage detected