/* Reusable mac window shell + sidebar for app views */ const MacWindow = ({ title, children, style = {}, height = 720, toolbar = null }) => (
{toolbar ? toolbar : {title}}
{children}
); /* App-internal sidebar (Finder-style, 240px) */ const AppSidebar = ({ items, current, onSelect }) => ( ); const AppToolbar = ({ title, sub, actions, search = true }) => (
{title} {sub && {sub}}
{search && (
Search ⌘ F
)} {actions}
); Object.assign(window, { MacWindow, AppSidebar, AppToolbar });