import { ComponentProps } from 'react'; import { ModalProps } from '@/entities/modal'; import { MODALS } from './consts'; type ModalName = keyof typeof MODALS; type ModalProperties = Omit, 'onClose'> & Partial; type ModalContainerFactory = { showModal: (name: K, props?: ModalProperties) => void; closeModal: () => void; }; export type { ModalName, ModalProperties, ModalContainerFactory };