Olympus/frontend/athena/components/common/EmptyState.tsx

19 lines
538 B
TypeScript

"use client";
import type { ReactNode } from "react";
type Props = {
title: string;
description: string;
action?: ReactNode;
};
export default function EmptyState({ title, description, action }: Props) {
return (
<div className="rounded-lg border bg-white p-8 text-center">
<h2 className="text-lg font-semibold text-slate-950">{title}</h2>
<p className="mx-auto mt-2 max-w-xl text-sm text-slate-500">{description}</p>
{action && <div className="mt-5 flex justify-center">{action}</div>}
</div>
);
}