Files
labelimage/components/label/components/BackConfirmModal.tsx
2026-03-10 18:20:50 +08:00

50 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use client"
import CustomModal from "./CustomModal"
import { IconInfoCircle } from "@tabler/icons-react"
import { Button, Group, Text, Flex, ThemeIcon } from "@mantine/core"
interface ComponentProps {
open: boolean
handleOk: () => void
handleCancel: () => void
onClose: () => void
}
const BackConfirmModal = ({
open,
handleOk,
handleCancel,
onClose,
}: ComponentProps) => {
return (
<CustomModal
title="温馨提示"
open={open}
centered
footer={
<Group justify="flex-end" gap="xs" mt="md">
<Button variant="subtle" onClick={onClose}>
</Button>
<Button color="red" onClick={handleCancel}>
</Button>
<Button color="blue" onClick={handleOk}>
</Button>
</Group>
}
onCancel={onClose}>
<Flex gap="sm" align="center">
<ThemeIcon color="yellow" variant="transparent" size="xl">
<IconInfoCircle size={28} />
</ThemeIcon>
<Text size="md">退</Text>
</Flex>
</CustomModal>
)
}
export default BackConfirmModal