Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.5 KB
Raw Blame
import { ViewBreadcrumbs, ViewShell } from '@app/components/view-shell';
import { SplitRouter } from '@app/lib/split-router';
import { SplitPanel } from '@components/app/split-panel';
import { LoginButton } from '@core/component/TopBar/LoginButton';
import { EmptyStatePanel } from '@ui';
import { Show, Suspense } from 'solid-js';
import { useDriveDetailNavigation } from '../drive-detail-navigation';
import { DriveLoading } from './drive-workspace';

export function SignedOutDriveWorkspace() {
  const navigation = useDriveDetailNavigation();
  return (
    <ViewBreadcrumbs.Root
      value={navigation.active()?.value ?? ''}
      onChange={navigation.popTo}
    >
      <SplitPanel.Root>
        <SplitPanel.Body>
          <ViewShell.Root>
            <ViewShell.Main>
              <Show
                when={navigation.active()}
                fallback={
                  <EmptyStatePanel
                    centered
                    title="Sign in to view your files"
                    description="Your files and folders are available after you sign in."
                  >
                    <LoginButton />
                  </EmptyStatePanel>
                }
              >
                <Suspense fallback={<DriveLoading />}>
                  <SplitRouter.Outlet />
                </Suspense>
              </Show>
            </ViewShell.Main>
          </ViewShell.Root>
        </SplitPanel.Body>
      </SplitPanel.Root>
    </ViewBreadcrumbs.Root>
  );
}