f0cff27e99
* setup typescript * covert to TypeScript
20 lines
416 B
TypeScript
20 lines
416 B
TypeScript
export type SelectionInput = {
|
|
icon: string;
|
|
label: string;
|
|
labelTranslation: string;
|
|
type: string;
|
|
};
|
|
|
|
export default class Selection {
|
|
icon: string;
|
|
label: string;
|
|
labelTranslation: string;
|
|
type: string;
|
|
|
|
constructor({ icon, label, labelTranslation, type }: SelectionInput) {
|
|
this.icon = icon;
|
|
this.label = label;
|
|
this.labelTranslation = labelTranslation;
|
|
this.type = type;
|
|
}
|
|
}
|