Pull Request branch dev-clone to main #1
|
|
@ -0,0 +1,28 @@
|
|||
import { Modal, Text, Flex } from "@mantine/core";
|
||||
import { Button } from "@/shadcn/components/ui/button";
|
||||
|
||||
interface FileSizeValidationModalProps {
|
||||
opened: boolean;
|
||||
onClose: () => void;
|
||||
fileName?: string;
|
||||
}
|
||||
|
||||
export default function FileSizeValidationModal({
|
||||
opened,
|
||||
onClose,
|
||||
fileName,
|
||||
}: FileSizeValidationModalProps) {
|
||||
return (
|
||||
<Modal opened={opened} onClose={onClose} title="Peringatan Ukuran File">
|
||||
<Text>
|
||||
Ukuran file {fileName} melebihi batas maksimum 25 MB!
|
||||
Silakan pilih file yang lebih kecil.
|
||||
</Text>
|
||||
<Flex gap="sm" justify="flex-end" mt="md">
|
||||
<Button variant="outline" onClick={onClose}>
|
||||
Tutup
|
||||
</Button>
|
||||
</Flex>
|
||||
</Modal>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user