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.1 KB
Raw Blame
import { EntityActivitySectionConditional } from '@app/features/activity/views/entity-activity-section';
import {
  DateValueDisplay,
  OwnerValue,
  SidePanel,
} from '@components/app/side-panel';
import type { Database } from '@service-storage/generated/schemas/database';
import { Show } from 'solid-js';

export function DatabaseSidePanelSections(props: {
  databaseId: string;
  database: Database | undefined;
}) {
  return (
    <>
      <SidePanel.Section id="details" title="Details" defaultOpen order={10}>
        <Show when={props.database} fallback={<SidePanel.Loading />}>
          {(database) => (
            <SidePanel.Grid>
              <SidePanel.Row label="Owner">
                <OwnerValue ownerId={database().owner_id} />
              </SidePanel.Row>
              <SidePanel.Row label="Created">
                <DateValueDisplay value={database().created_at} />
              </SidePanel.Row>
            </SidePanel.Grid>
          )}
        </Show>
      </SidePanel.Section>
      <EntityActivitySectionConditional
        entityId={props.databaseId}
        entityType="DATABASE"
        order={40}
      />
    </>
  );
}