Files
wehub-resource-sync c48612c494
CI / E2E Tests (push) Has been cancelled
CI / Lint, Typecheck & Unit Tests (push) Has been cancelled
Docs Build / Build docs site (push) Has been cancelled
Publish @openmaic packages / Build, validate & publish (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:03:23 +08:00

14 lines
424 B
TypeScript

import { cn } from '@/lib/utils';
import { NodeToolbar, Position } from '@xyflow/react';
import type { ComponentProps } from 'react';
type ToolbarProps = ComponentProps<typeof NodeToolbar>;
export const Toolbar = ({ className, ...props }: ToolbarProps) => (
<NodeToolbar
className={cn('flex items-center gap-1 rounded-sm border bg-background p-1.5', className)}
position={Position.Bottom}
{...props}
/>
);