Download admin-bro/src/frontend/interfaces/modal.interface.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 502 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/admin-bro/src/frontend/interfaces/modal.interface.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/admin-bro/src/frontend/interfaces/modal.interface.ts
-
curl -L -o modal.interface.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/admin-bro/src/frontend/interfaces/modal.interface.ts
502 Bytes
| import type { ModalProps } from '@adminjs/design-system' | |
| import { SHOW_MODAL, HIDE_MODAL } from '../store/index.js' | |
| export interface ModalData { | |
| modalProps: ModalProps; | |
| type?: 'alert' | 'confirm'; | |
| resourceId?: string; | |
| confirmAction?: () => void; | |
| } | |
| export type ModalFunctions = { | |
| openModal: (data: ModalData) => void | |
| closeModal: () => void | |
| } | |
| export type ShowModalResponse = { | |
| type: typeof SHOW_MODAL | |
| data: ModalData; | |
| } | |
| export type HideModalResponse = { | |
| type: typeof HIDE_MODAL; | |
| } | |