diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts index d942f6fa12e..9ee25badb3a 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts @@ -1,3 +1,4 @@ export { Deploy } from './deploy' export { Editor } from './editor' +export { PanelTabButton } from './panel-tab-button' export { Toolbar } from './toolbar' diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/panel-tab-button.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/panel-tab-button.tsx new file mode 100644 index 00000000000..cef451fe5c8 --- /dev/null +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/panel-tab-button.tsx @@ -0,0 +1,26 @@ +import { type ComponentProps, forwardRef } from 'react' +import { Button, cn } from '@sim/emcn' + +interface PanelTabButtonProps + extends Omit, 'variant' | 'size' | 'iconSize' | 'iconPadding'> { + active: boolean +} + +/** The workflow panel's compact tab treatment, with caller-owned selection. */ +export const PanelTabButton = forwardRef( + ({ active, className, ...props }, ref) => ( + + )} - - +