Spaces:
Runtime error
Runtime error
Download client/src/components/shared/ConfirmDialog.jsx from moustafa7/flwo: direct link, hf CLI and curl.
- Browser
- Download file 584 Bytes
-
https://huggingface.co/spaces/moustafa7/flwo/resolve/main/client/src/components/shared/ConfirmDialog.jsx
- Command line
-
hf download hf://spaces/moustafa7/flwo/client/src/components/shared/ConfirmDialog.jsx
-
curl -L -o ConfirmDialog.jsx https://huggingface.co/spaces/moustafa7/flwo/resolve/main/client/src/components/shared/ConfirmDialog.jsx
584 Bytes
| import { Modal } from '../ui/Modal' | |
| import { Button } from '../ui/Button' | |
| export function ConfirmDialog({ isOpen, onClose, onConfirm, title, message, confirmLabel = 'تأكيد', loading }) { | |
| return ( | |
| <Modal isOpen={isOpen} onClose={onClose} title={title} size="sm"> | |
| <p className="text-gray-600 text-sm">{message}</p> | |
| <div className="flex gap-3 mt-6 justify-end"> | |
| <Button variant="secondary" onClick={onClose}>إلغاء</Button> | |
| <Button variant="danger" onClick={onConfirm} loading={loading}>{confirmLabel}</Button> | |
| </div> | |
| </Modal> | |
| ) | |
| } | |