lml-main
Version:
This is now a mono repository published into many standalone packages.
22 lines (21 loc) • 781 B
TypeScript
import * as React from 'react';
import { AllocationType } from '@lml/cosmo-ts-data';
import { AbstractJobField, AbstractJobFieldProps } from './abstract-field';
/**
* Map of refId to callsign
*/
export interface RefIdToCallsignMap {
[refId: string]: string;
}
export interface SmartFieldProps extends AbstractJobFieldProps {
}
export interface SmartFieldComponentProps extends SmartFieldProps {
matches: string[];
callsigns: RefIdToCallsignMap | null;
allocate: (allocationType: AllocationType, jobRefId?: string, courierRefId?: string) => any;
}
export declare class SmartFieldComponent extends AbstractJobField<SmartFieldComponentProps> {
render(): JSX.Element;
private onClick;
}
export declare const SmartField: React.ComponentClass<SmartFieldProps>;