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..87847c99c19 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 { PanelTabButton } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/panel-tab-button' export { Deploy } from './deploy' export { Editor } from './editor' 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..77989a0d2b8 --- /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) => ( + + )} - - +