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.

665 B
Raw Blame
import { Button, cn } from '@ui';
import type { JSX } from 'solid-js';

export function InputActionButton(props: {
  label: string;
  onClick?: (event: MouseEvent) => void;
  active?: boolean;
  disabled?: boolean;
  class?: string;
  children: JSX.Element;
}) {
  return (
    <Button
      tooltip={props.label}
      aria-label={props.label}
      disabled={props.disabled}
      variant={props.active ? 'primary' : 'ghost'}
      size="icon-md"
      class={cn('touch:size-6', props.class)}
      onPointerDown={(event: PointerEvent) => event.preventDefault()}
      onClick={(event) => props.onClick?.(event)}
    >
      {props.children}
    </Button>
  );
}