'use client' import { FakeWindow, useWindowManager } from "@/hooks/window-manager"; import { Icon } from "@iconify/react"; import clsx from "clsx"; import React, { useState, useRef, useEffect, useReducer } from "react"; export const RestoreWindowsButton = ({ onClick, className, ...props}: React.ComponentProps<"button">) => { const windowManager = useWindowManager(); const isWindowsDataDirty = !windowManager.windows.find(w => w.closed == true || w.minimized == true || (w.offset.x != 0 && w.offset.y != 0) ) return (
{children}
) }