import { AlertTriangle, Loader2 } from 'lucide-react'
import type { ReactNode } from 'react'
import { errorMessage } from '../lib/api'
export function Loading({ label = 'Loading…' }: { label?: string }) {
return (
{label}
)
}
export function ErrorMessage({ error, className = '' }: { error: unknown; className?: string }) {
if (!error) return null
return (
)
}
export function Empty({ children }: { children: ReactNode }) {
return {children}
}