Split 879-LOC page.tsx into 187 LOC with 11 colocated components, _types.ts and _constants.ts for the industry templates module. Behavior preserved. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
21 lines
901 B
TypeScript
21 lines
901 B
TypeScript
export function EmptyState({ onReload }: { onReload: () => void }) {
|
|
return (
|
|
<div className="bg-white rounded-xl border border-slate-200 p-12 text-center">
|
|
<div className="w-16 h-16 rounded-2xl bg-emerald-50 flex items-center justify-center text-3xl mx-auto mb-4">
|
|
{'\uD83C\uDFED'}
|
|
</div>
|
|
<h3 className="text-lg font-semibold text-slate-900">Keine Branchenvorlagen verfuegbar</h3>
|
|
<p className="text-slate-500 mt-2 max-w-md mx-auto">
|
|
Es sind derzeit keine branchenspezifischen Compliance-Pakete im System hinterlegt.
|
|
Bitte kontaktieren Sie den Administrator oder versuchen Sie es spaeter erneut.
|
|
</p>
|
|
<button
|
|
onClick={onReload}
|
|
className="mt-4 px-4 py-2 text-sm font-medium text-emerald-700 bg-emerald-50 hover:bg-emerald-100 rounded-lg transition-colors"
|
|
>
|
|
Erneut laden
|
|
</button>
|
|
</div>
|
|
)
|
|
}
|