import { PayloadAction } from '@reduxjs/toolkit';
import { IModal, ModalCloseReason } from '@ws-ui/shared';

export type ICreateModalAction = PayloadAction<IModal>;
export type IEditModalAction = PayloadAction<{
    id: string;
} & Partial<Pick<IModal, 'views' | 'title'>>>;
export type IRemoveModalAction = PayloadAction<string>;
export type ICloseModalAction = PayloadAction<{
    id: string;
    reason?: ModalCloseReason;
}>;
