()
| 180 | } |
| 181 | |
| 182 | export const usePiPWindow = () => { |
| 183 | const context = createMemo(() => { |
| 184 | const ctx = useContext(PiPContext) |
| 185 | if (!ctx) { |
| 186 | throw new Error('usePiPWindow must be used within a PiPProvider') |
| 187 | } |
| 188 | return ctx() |
| 189 | }) |
| 190 | return context |
| 191 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…