'use client' import { useState } from 'react' import { Button } from '@/components/ui/button' import { Card } from '@/components/ui/card' import { Badge } from '@/components/ui/badge' import { Loader2, ArrowRight, Building2, User, Check } from 'lucide-react' import { cn } from '@/lib/utils' import type { EntityType } from '@/types' interface Step1Props { initialData: { entity_type?: EntityType } onNext: (data: { entity_type: EntityType }) => void isSaving: boolean } const entityOptions: { value: EntityType | string label: string description: string icon: typeof Building2 disabled?: boolean }[] = [ { value: 'enskild_firma', label: 'Enskild firma', description: 'Du driver verksamhet i eget namn med F-skattsedel', icon: User, }, { value: 'aktiebolag', label: 'Aktiebolag', description: 'Du har ett registrerat AB med organisationsnummer', icon: Building2, }, ] export default function Step1EntityType({ initialData, onNext, isSaving }: Step1Props) { const [selected, setSelected] = useState(initialData.entity_type) const handleNext = () => { if (selected) { onNext({ entity_type: selected }) } } return (

Välkommen!

Låt oss börja med att ställa in din verksamhet. Vilken företagsform har du?

{entityOptions.map((option) => { const Icon = option.icon const isSelected = selected === option.value return ( ) })}
) }