import type { LayoutNode } from 'officerdev';
import { WorkspaceView } from 'officerdev';
import { useDashboardState } from 'state/useDashboardState';
import { defaultLayout } from './defaultLayout';

export const DesktopScreen = () => {
  const workspace = useDashboardState<LayoutNode>('screens/desktop', defaultLayout);

  return (
    <div className="h-full w-full">
      <WorkspaceView
        workspace={workspace}
        locked
        appTypes={{ allowed: ['officerdev/desktop'], fallback: 'officerdev/desktop' }}
      />
    </div>
  );
};
