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.

1015 B
Raw Blame
import { ViewSkeleton } from '@app/components/view-shell/ViewSkeleton';
import { CalendarGridSkeleton } from '@app/features/calendar/components/CalendarGridSkeleton';
import { isMobile } from '@core/mobile/isMobile';

const monthTitle = () =>
  new Intl.DateTimeFormat(undefined, { month: 'long', year: 'numeric' }).format(
    new Date()
  );

/** Calendar while its code loads: the month title over an empty week grid. */
export function CalendarViewSkeleton() {
  return (
    <ViewSkeleton.Root
      asidePreferenceKey="calendar"
      aside={isMobile() ? false : { preserveDuringResize: false }}
    >
      <ViewSkeleton.Sidebar title="Calendar" createLabel="New" />
      <ViewSkeleton.Main
        title={monthTitle()}
        controls={['Booking links ⌄', 'Today ‹ ›', 'Week ⌄', '+ New ⌄', 1]}
      >
        <div class="flex min-h-0 flex-1">
          <CalendarGridSkeleton dayCount={7} showDayHeader showAllDaySlot />
        </div>
      </ViewSkeleton.Main>
    </ViewSkeleton.Root>
  );
}