mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 04:57:15 -05:00
29 lines
980 B
TypeScript
29 lines
980 B
TypeScript
import React from 'react';
|
|
import WindowFrame from '../shared/WindowFrame';
|
|
import { WindowState } from '../../hooks/useWindowManager';
|
|
|
|
type Props = {
|
|
state: WindowState;
|
|
onClose: (id: string) => void;
|
|
onMinimize: (id: string) => void;
|
|
onMaximize: (id: string) => void;
|
|
onDragStart: (id: string, event: React.MouseEvent) => void;
|
|
onFocus: (id: string) => void;
|
|
};
|
|
|
|
export default function RoadcraftWindow({ state, ...handlers }: Props) {
|
|
return (
|
|
<WindowFrame id="roadcraft" title="RoadCraft" icon="⛏️" state={state} {...handlers}>
|
|
<div className="window-inner">
|
|
<div className="content-header">
|
|
<h2>Voxel World Builder</h2>
|
|
<p>Design agent habitats & quantum sandboxes</p>
|
|
</div>
|
|
<div className="content-body" style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
|
|
<button className="btn-primary">New World</button>
|
|
</div>
|
|
</div>
|
|
</WindowFrame>
|
|
);
|
|
}
|