PHP 8.2.30
Preview: modal.interface.ts Size: 502 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/frontend/interfaces/modal.interface.ts

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;
}

Directory Contents

Dirs: 2 × Files: 6

Name Size Perms Modified Actions
action DIR
- drwxr-xr-x 2026-02-28 00:32:28
Edit Download
- drwxr-xr-x 2026-02-28 00:32:40
Edit Download
286 B lrw-r--r-- 2026-02-28 00:32:28
Edit Download
502 B lrw-r--r-- 2026-02-28 00:32:38
Edit Download
482 B lrw-r--r-- 2026-02-28 00:32:38
Edit Download
347 B lrw-r--r-- 2026-02-28 00:32:38
Edit Download
1.32 KB lrw-r--r-- 2026-02-28 00:32:40
Edit Download
1.68 KB lrw-r--r-- 2026-02-28 00:32:42
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).