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.

885 B
Raw Blame
import { MobileDrawer } from '@components/app/mobile/MobileDrawer';
import X from '@icon/system/regular/x.svg';
import { Button } from '@ui';

export function SchedulingDrawerHeader(props: {
  title: string;
  closeLabel: string;
  onClose: () => void;
}) {
  return (
    <div class="flex shrink-0 items-start justify-between gap-3 px-6 pb-4">
      <MobileDrawer.Title
        as="h2"
        title={props.title}
        class="line-clamp-2 min-w-0 break-words text-lg font-semibold text-ink"
      >
        {props.title}
      </MobileDrawer.Title>
      <Button
        aria-label={props.closeLabel}
        tooltip={{ content: props.closeLabel, disabled: true }}
        variant="ghost"
        size="icon-sm"
        class="shrink-0 rounded-full bg-ink/6"
        onClick={props.onClose}
      >
        <X class="size-4" aria-hidden="true" />
      </Button>
    </div>
  );
}