'use client' import * as React from 'react' import Link from 'next/link' import { Button } from '@/components/ui/button' import { cn } from '@/lib/utils' import { Receipt, Users, ArrowLeftRight, Camera, Building2, FileText, Calendar, Plus, type LucideIcon, } from 'lucide-react' interface EmptyStateProps { icon?: LucideIcon title: string description: string actionLabel?: string actionHref?: string onAction?: () => void secondaryActionLabel?: string secondaryActionHref?: string className?: string children?: React.ReactNode } /** * EmptyState - Visar ett vänligt meddelande när det inte finns någon data */ export function EmptyState({ icon: Icon, title, description, actionLabel, actionHref, onAction, secondaryActionLabel, secondaryActionHref, className, children, }: EmptyStateProps) { return (
{description}
{(actionLabel || children) && (