3f255ea201
Extract shared vision/document analysis logic into lib/ai (vision-client, document-analyzer, image preprocessing, validation helpers), simplifying invoice-analyzer, receipt-analyzer, and document classifier. Add migration 046 for journal entry reversal/correction link columns (reversed_by_id, reverses_id, correction_of_id) required by storno service. Update extension components and shared UI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
678 B
TypeScript
22 lines
678 B
TypeScript
import { Puzzle } from 'lucide-react'
|
|
|
|
interface EmptyExtensionStateProps {
|
|
title?: string
|
|
description?: string
|
|
icon?: React.ReactNode
|
|
}
|
|
|
|
export default function EmptyExtensionState({
|
|
title = 'Ingen data ännu',
|
|
description = 'Data kommer att visas här när det finns tillgängligt.',
|
|
icon,
|
|
}: EmptyExtensionStateProps) {
|
|
return (
|
|
<div className="flex flex-col items-center justify-center py-16 text-center">
|
|
{icon ?? <Puzzle className="h-12 w-12 text-muted-foreground/40 mb-4" />}
|
|
<h3 className="text-lg font-medium text-foreground">{title}</h3>
|
|
<p className="text-sm text-muted-foreground mt-1 max-w-md">{description}</p>
|
|
</div>
|
|
)
|
|
}
|