import type { LayoutProps, PointerProps } from "@solidrt/core" import type { StyleProps } from "./types" export interface WindowProps extends PointerProps { children?: any title?: string fullscreen?: boolean layout?: LayoutProps style?: StyleProps } // A window is the root surface: it can't be transformed or bordered, so only // the paint-only backgroundColor from style applies here. export function Window(props: WindowProps) { return ( {props.style?.backgroundColor != null ? ( ) : null} {props.children} ) }