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

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

  return (
    <div className="h-full w-full">
      <WorkspaceView workspace={workspace} />
    </div>
  );
};
