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.

700 B
Raw Blame
import { ViewCreateButton } from '@app/components/view-shell/ViewCreateButton';
import type { ButtonProps } from '@ui';
import { SidebarCreateMenu } from './sidebar/sidebar-create-menu';

/** General creation menu for views without their own creation workflow. */
export function ViewCreateMenu(props: { presentation: 'sidebar' | 'toolbar' }) {
  return (
    <SidebarCreateMenu
      placement={
        props.presentation === 'sidebar' ? 'bottom-start' : 'bottom-end'
      }
      trigger={(triggerProps: ButtonProps) => (
        <ViewCreateButton
          {...triggerProps}
          presentation={props.presentation}
          aria-label="New"
          menu
        />
      )}
    />
  );
}