mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-09 02:28:18 +00:00
38 lines
943 B
TypeScript
38 lines
943 B
TypeScript
import { ArrowLeft, Download, CheckCircle } from "lucide-react";
|
|
import { Group, Button } from "@mantine/core";
|
|
|
|
export interface BookingDetailToolbarProps {
|
|
onBack: () => void;
|
|
onExport?: () => void;
|
|
onAction?: () => void;
|
|
}
|
|
|
|
/** Top action bar for the booking detail page. */
|
|
export function BookingDetailToolbar({
|
|
onBack,
|
|
onExport,
|
|
onAction,
|
|
}: BookingDetailToolbarProps) {
|
|
return (
|
|
<Group justify="space-between" mb="md">
|
|
<Button
|
|
variant="subtle"
|
|
color="gray"
|
|
leftSection={<ArrowLeft size={18} />}
|
|
onClick={onBack}
|
|
fw={600}
|
|
>
|
|
Back
|
|
</Button>
|
|
<Group gap="sm">
|
|
<Button variant="default" leftSection={<Download size={16} />} onClick={onExport}>
|
|
Export
|
|
</Button>
|
|
<Button color="green" leftSection={<CheckCircle size={16} />} onClick={onAction}>
|
|
Take Action
|
|
</Button>
|
|
</Group>
|
|
</Group>
|
|
);
|
|
}
|