'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 (
{Icon && (
)}

{title}

{description}

{(actionLabel || children) && (
{actionHref && actionLabel && ( )} {onAction && actionLabel && ( )} {secondaryActionHref && secondaryActionLabel && ( )} {children}
)}
) } // Förkonfigurerade tomma tillstånd för vanliga sidor export function EmptyInvoices() { return ( ) } export function EmptyCustomers({ onAction }: { onAction?: () => void } = {}) { return ( ) } export function EmptyTransactions() { return ( ) } export function EmptyReceipts() { return ( ) } export function EmptyDeadlines() { return ( ) } export function NoBankConnected() { return ( ) } export function EmptyReports() { return ( ) }