fix(knowledge): improve upload workflow and seed manufacturers
This commit is contained in:
parent
964b545bc5
commit
612e1ad8ed
13 changed files with 429 additions and 20 deletions
19
frontend/athena/components/common/EmptyState.tsx
Normal file
19
frontend/athena/components/common/EmptyState.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
"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>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue