export default function DraggableWindow(props: DraggableWindowProps) {
const [position, setPosition] = createStore({ x: 100, y: 100 });
let ref: HTMLDivElement | undefined;
const context = useWindowManagerContext()!;
// rest of the code...
return (
// parent code
{props.children}
// parent code
);
}
export default function DraggableWindow(props: DraggableWindowProps) {
const [position, setPosition] = createStore({ x: 100, y: 100 });
let ref: HTMLDivElement | undefined;
const context = useWindowManagerContext()!;
// rest of the code...
return (
// parent code
{props.children}
// parent code
);
}