()
| 186 | const OpenInContext = createContext<{ query: string } | undefined>(undefined); |
| 187 | |
| 188 | const useOpenInContext = () => { |
| 189 | const context = useContext(OpenInContext); |
| 190 | if (!context) { |
| 191 | throw new Error("OpenIn components must be used within an OpenIn provider"); |
| 192 | } |
| 193 | return context; |
| 194 | }; |
| 195 | |
| 196 | export type OpenInProps = ComponentProps<typeof DropdownMenu> & { |
| 197 | query: string; |
no outgoing calls
no test coverage detected