lml-main
Version:
This is now a mono repository published into many standalone packages.
21 lines (20 loc) • 777 B
TypeScript
import * as React from 'react';
import { JobModel, AllocationType } from '@lml/cosmo-ts-data';
import { ModalRootComponentProps } from 'cosmoui';
export interface DeallocationModalProps extends ModalRootComponentProps {
currentModal: {
modalProps: {
job: JobModel;
};
modalType: string;
};
}
export interface DeallocationModalComponentProps extends DeallocationModalProps {
job: JobModel;
callsign: string;
selectedCourierId: string;
validateCourier: (callsign: string) => string[];
allocate: (allocationType: AllocationType, jobRefId?: string, courierRefId?: string) => any;
notificationError: (message: string) => any;
}
export declare const DeallocationModal: React.ComponentClass<DeallocationModalProps>;