UNPKG

@wener/console

Version:
12 lines (11 loc) 514 B
import React from "react"; import { MacOSWindowController } from "./macos/MacOSWindowController.js"; import { useWindowTheme } from "./useWindowTheme.js"; import { WindowsWindowController } from "./windows/WindowsWindowController.js"; export var WindowController = function (props) { var theme = useWindowTheme(); if (theme === "macos") { return /*#__PURE__*/ React.createElement(MacOSWindowController, props); } return /*#__PURE__*/ React.createElement(WindowsWindowController, props); };