mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 15:18:11 +00:00
30 lines
698 B
TypeScript
30 lines
698 B
TypeScript
import { ArrowRight } from "lucide-react";
|
|
import { Alert, Text } from "@mantine/core";
|
|
|
|
import type { BookingNextStep } from "@/types/booking";
|
|
|
|
interface NextStepBannerProps {
|
|
nextStep: BookingNextStep;
|
|
}
|
|
|
|
export function NextStepBanner({ nextStep }: NextStepBannerProps) {
|
|
return (
|
|
<Alert
|
|
variant="light"
|
|
color="gray"
|
|
radius="md"
|
|
icon={<ArrowRight size={16} />}
|
|
title={
|
|
<Text size="sm" fw={600}>
|
|
Next: {nextStep.action.replace(/_/g, " ")}
|
|
{nextStep.requiredRole ? ` (${nextStep.requiredRole})` : ""}
|
|
</Text>
|
|
}
|
|
>
|
|
<Text size="sm" c="dimmed">
|
|
{nextStep.description}
|
|
</Text>
|
|
</Alert>
|
|
);
|
|
}
|