23 lines
420 B
TypeScript
23 lines
420 B
TypeScript
import type { LucideIcon } from "lucide-react";
|
|
|
|
export function EmptyState({
|
|
icon: Icon,
|
|
title,
|
|
text,
|
|
action,
|
|
}: {
|
|
icon: LucideIcon;
|
|
title: string;
|
|
text: string;
|
|
action?: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<div className="leerzustand">
|
|
<Icon size={48} aria-hidden="true" />
|
|
<h4 className="leerzustand-titel">{title}</h4>
|
|
<p>{text}</p>
|
|
{action ? <div className="btn-reihe">{action}</div> : null}
|
|
</div>
|
|
);
|
|
}
|