import { ArrowRight } from 'lucide-react'
import type {
WorkflowAuthoringSection,
WorkflowAuthoringSectionConfig,
} from './workflowAuthoringSections'
type WorkflowAuthoringSectionSelectorProps = {
sections: WorkflowAuthoringSectionConfig[]
activeSection: WorkflowAuthoringSection
onSelectSection: (section: WorkflowAuthoringSection) => void
variant?: 'pill' | 'card'
}
export function WorkflowAuthoringSectionSelector({
sections,
activeSection,
onSelectSection,
variant = 'pill',
}: WorkflowAuthoringSectionSelectorProps) {
if (variant === 'card') {
return (
{sections.map(section => {
const Icon = section.icon
const isActive = activeSection === section.key
const toneLabel = section.tone === 'Escape Hatch' ? 'Direct' : section.tone
return (
)
})}
)
}
return (
{sections.map(section => {
const Icon = section.icon
const isActive = activeSection === section.key
return (
)
})}
)
}