feat(customers): add dashboard and customer management
This commit is contained in:
parent
694b7bd09a
commit
92cb8d1286
28 changed files with 2521 additions and 13 deletions
19
frontend/athena/components/common/DetailSection.tsx
Normal file
19
frontend/athena/components/common/DetailSection.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import type { ReactNode } from "react";
|
||||
|
||||
type Props = {
|
||||
title: string;
|
||||
actions?: ReactNode;
|
||||
children: ReactNode;
|
||||
};
|
||||
|
||||
export default function DetailSection({ title, actions, children }: Props) {
|
||||
return (
|
||||
<section className="rounded-lg border bg-white p-6">
|
||||
<div className="mb-5 flex items-center justify-between gap-4">
|
||||
<h2 className="text-lg font-semibold text-slate-950">{title}</h2>
|
||||
{actions}
|
||||
</div>
|
||||
{children}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue