Files
karma/ui/src/Common/Select.ts
2022-01-11 22:48:45 +00:00

21 lines
424 B
TypeScript

export const NewLabelName = (v: string): string => `New label: ${v}`;
export const NewLabelValue = (v: string): string => `New value: ${v}`;
export interface OptionT {
label: string;
value: string;
wasCreated: boolean;
}
export interface MultiValueOptionT {
label: string;
value: string[];
}
export const StringToOption = (value: string): OptionT => ({
label: value,
value: value,
wasCreated: false,
});