2024-03-28 00:03:05 +01:00
|
|
|
import { LuX } from "react-icons/lu";
|
|
|
|
import { Button } from "../ui/button";
|
|
|
|
import { FaCompactDisc } from "react-icons/fa";
|
|
|
|
|
|
|
|
type SaveExportOverlayProps = {
|
|
|
|
className: string;
|
|
|
|
show: boolean;
|
|
|
|
onSave: () => void;
|
|
|
|
onCancel: () => void;
|
|
|
|
};
|
|
|
|
export default function SaveExportOverlay({
|
|
|
|
className,
|
|
|
|
show,
|
|
|
|
onSave,
|
|
|
|
onCancel,
|
|
|
|
}: SaveExportOverlayProps) {
|
|
|
|
return (
|
|
|
|
<div className={className}>
|
|
|
|
<div
|
2024-05-14 17:06:44 +02:00
|
|
|
className={`pointer-events-auto flex items-center justify-center gap-2 rounded-lg px-2 ${
|
|
|
|
show ? "duration-500 animate-in slide-in-from-top" : "invisible"
|
|
|
|
} mx-auto mt-5 text-center`}
|
2024-03-28 00:03:05 +01:00
|
|
|
>
|
|
|
|
<Button
|
|
|
|
className="flex items-center gap-1"
|
|
|
|
variant="select"
|
|
|
|
size="sm"
|
|
|
|
onClick={onSave}
|
|
|
|
>
|
|
|
|
<FaCompactDisc />
|
|
|
|
Save Export
|
|
|
|
</Button>
|
|
|
|
<Button
|
2024-04-10 00:49:14 +02:00
|
|
|
className="flex items-center gap-1 text-primary"
|
2024-03-28 00:03:05 +01:00
|
|
|
size="sm"
|
|
|
|
onClick={onCancel}
|
|
|
|
>
|
|
|
|
<LuX />
|
|
|
|
Cancel
|
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|