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.

480 B
Raw Blame
import { Tabs } from '@ui';
import type { CodeBlockMode } from './CodeContent';

export function CodeModeControl(props: {
  mode: CodeBlockMode;
  onModeChange: (mode: CodeBlockMode) => void;
}) {
  return (
    <Tabs
      aria-label="HTML views"
      touch="inset"
      class="shrink-0"
      options={[
        { value: 'render', label: 'Render' },
        { value: 'code', label: 'Code' },
      ]}
      value={props.mode}
      onChange={props.onModeChange}
    />
  );
}