import { Center, Loader, Overlay, Stack, Text } from "@mantine/core"; type FullScreenLoadingProps = { visible: boolean; text?: string; }; export default function FullScreenLoading({ visible, text = "Memproses data...", }: FullScreenLoadingProps) { if (!visible) return null; return (
{text}
); } const overlayStyle: React.CSSProperties = { position: "fixed", inset: 0, zIndex: 9999, backdropFilter: "blur(6px)", backgroundColor: "rgba(255, 255, 255, 0.6)", }; const contentStyle: React.CSSProperties = { flexDirection: "column", };