()
| 165 | } |
| 166 | |
| 167 | export const createPiPWindow = () => { |
| 168 | const context = createMemo(() => { |
| 169 | const ctx = getContext(PiPContext) |
| 170 | if (!ctx) { |
| 171 | throw new Error('createPiPWindow must be used within a PiPProvider') |
| 172 | } |
| 173 | return ctx() |
| 174 | }) |
| 175 | return context |
| 176 | } |
no test coverage detected