14 lines
447 B
TypeScript
14 lines
447 B
TypeScript
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
|
import { LucideAlertTriangle } from "lucide-react";
|
|
|
|
export const WarningMessage = ({ title, message }: { title: string; message: string }) => {
|
|
return (
|
|
<Alert className="border-red-500">
|
|
<LucideAlertTriangle />
|
|
<AlertTitle>{title}</AlertTitle>
|
|
<AlertDescription>{message}</AlertDescription>
|
|
</Alert>
|
|
);
|
|
};
|
|
|
|
export default WarningMessage;
|