import { useFlowStore } from '../../store/useFlowStore'; import type { StakeholderView } from '../../data/types'; import { Icon } from '../shared/Icon'; const VIEWS: { id: StakeholderView; label: string; icon: string }[] = [ { id: 'rider-mobile-dev', label: 'Rider', icon: 'phone_iphone' }, { id: 'driver-mobile-dev', label: 'Driver', icon: 'directions_car' }, { id: 'backend-dev', label: 'Backend', icon: 'terminal' }, { id: 'product-manager', label: 'PM', icon: 'bar_chart' }, { id: 'engineering-manager', label: 'EM', icon: 'groups' }, { id: 'staff-engineer', label: 'Staff', icon: 'engineering' }, { id: 'qa-engineer', label: 'QA', icon: 'bug_report' }, ]; export function StakeholderToggle() { const view = useFlowStore((s) => s.stakeholderView); const setView = useFlowStore((s) => s.setStakeholderView); return (
View:
{VIEWS.map(({ id, label, icon }) => ( ))}
); }