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-04-09 15:49:14 +02:00
|
|
|
className={`flex justify-center px-2 gap-2 items-center pointer-events-auto rounded-lg ${
|
2024-03-28 00:03:05 +01:00
|
|
|
show ? "animate-in slide-in-from-top duration-500" : "invisible"
|
|
|
|
} text-center mt-5 mx-auto`}
|
|
|
|
>
|
|
|
|
<Button
|
|
|
|
className="flex items-center gap-1"
|
|
|
|
variant="select"
|
|
|
|
size="sm"
|
|
|
|
onClick={onSave}
|
|
|
|
>
|
|
|
|
<FaCompactDisc />
|
|
|
|
Save Export
|
|
|
|
</Button>
|
|
|
|
<Button
|
2024-04-09 15:49:14 +02:00
|
|
|
className="flex items-center gap-1 text-primary-foreground"
|
2024-03-28 00:03:05 +01:00
|
|
|
size="sm"
|
|
|
|
variant="secondary"
|
|
|
|
onClick={onCancel}
|
|
|
|
>
|
|
|
|
<LuX />
|
|
|
|
Cancel
|
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|