@wener/console
Version:
Base console UI toolkit
13 lines (12 loc) • 555 B
JavaScript
import React from "react";
import { MacOSWindowController } from "./macos/MacOSWindowController.js";
import { useWindowTheme } from "./useWindowTheme.js";
import { WindowsWindowController } from "./windows/WindowsWindowController.js";
export const WindowController = (props) => {
let theme = useWindowTheme();
if (theme === "macos") {
return /*#__PURE__*/ React.createElement(MacOSWindowController, props);
}
return /*#__PURE__*/ React.createElement(WindowsWindowController, props);
};
//# sourceMappingURL=WindowController.js.map