#fix: bug

- Desk:
- Perbaikan penempatan file
## No issuee
This commit is contained in:
2024-07-10 23:42:54 +08:00
parent ab6f2fe8a7
commit e744bb95fa
408 changed files with 779 additions and 861 deletions

View File

@@ -0,0 +1,45 @@
import { Modal, Stack, Title, Group, Button, Box } from "@mantine/core";
import { MainColor, AccentColor } from "../color/color_pallet";
export default function UIGlobal_Modal({
opened,
close,
title,
buttonKiri,
buttonKanan,
}: {
opened: any;
close: any;
title: any;
buttonKiri: any;
buttonKanan: any;
}) {
return (
<>
<Modal
opened={opened}
onClose={() => {
close();
}}
centered
withCloseButton={false}
styles={{
content: {
backgroundColor: MainColor.darkblue,
border: `2px solid ${AccentColor.blue}`,
},
}}
>
<Stack>
<Title order={6} color="white" align="center">
{title}
</Title>
<Group position="center">
<Box>{buttonKiri}</Box>
<Box>{buttonKanan}</Box>
</Group>
</Stack>
</Modal>
</>
);
}