mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 10:10:57 +00:00
Muluhabt ERP modules
This commit is contained in:
26
apps/finance-web/src/shared/components/PageHeader.tsx
Normal file
26
apps/finance-web/src/shared/components/PageHeader.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import { Group, Stack, Text, Title } from "@mantine/core";
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
export function PageHeader({
|
||||
title,
|
||||
description,
|
||||
actions,
|
||||
}: {
|
||||
title: string;
|
||||
description?: string;
|
||||
actions?: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<Group justify="space-between" align="flex-start" mb="lg" wrap="wrap">
|
||||
<Stack gap={2}>
|
||||
<Title order={2}>{title}</Title>
|
||||
{description && (
|
||||
<Text size="sm" c="dimmed">
|
||||
{description}
|
||||
</Text>
|
||||
)}
|
||||
</Stack>
|
||||
{actions && <Group gap="sm">{actions}</Group>}
|
||||
</Group>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user