lml-main
Version:
This is now a mono repository published into many standalone packages.
25 lines (24 loc) • 1.05 kB
TypeScript
import * as React from 'react';
import { CourierModel, AllocationType } from '@lml/cosmo-ts-data';
import { DragType } from '../../../allocation/actions';
export interface CourierCardProps {
courier: CourierModel;
style?: any;
}
export interface CourierComponentProps extends CourierCardProps {
active: boolean;
expanded: boolean;
dropTarget: boolean;
canAllocate: boolean;
allocate: (allocationType: AllocationType, jobRefId?: string, courierRefID?: string) => any;
setActiveCourier: (refId: string) => any;
unsetActiveCourier: (refId: string) => any;
setExpandedCourier: (refId: string) => any;
unsetExpandedCourier: (refId: string) => any;
showCourierDetails: (refId: string) => any;
setDragTarget: (draggingType: DragType, refId: string) => any;
setDropTarget: (draggingType: DragType, refId: string) => any;
resetDragAndDrop: () => any;
resetDropTarget: (draggingType: DragType, refId: string) => any;
}
export declare const CourierCard: React.ComponentClass<CourierCardProps>;