diff --git a/compass/utils/classes/CollectionImpl.tsx b/compass/utils/classes/CollectionImpl.tsx new file mode 100644 index 0000000..8d8a46a --- /dev/null +++ b/compass/utils/classes/CollectionImpl.tsx @@ -0,0 +1,16 @@ +class CollectionImpl { + title: string; + icon: any; + data: any; + + constructor(title: string, icon: any) { + this.title = title; + this.icon = icon; + } + + // subject to change + setData(data: any){ + this.data = data; + } + +} \ No newline at end of file diff --git a/compass/utils/constants.tsx b/compass/utils/constants.tsx index 7c2c826..ad0169d 100644 --- a/compass/utils/constants.tsx +++ b/compass/utils/constants.tsx @@ -45,4 +45,10 @@ export enum DATATYPE { EMAIL, MULTISELECT, SELECT +} + +export const COLLECTION_MAP: {[key in COLLECTION]: CollectionImpl} = { + [COLLECTION.RESOURCE]: new CollectionImpl('Resources', Icons.ResourceIcon), + [COLLECTION.SERVICE]: new CollectionImpl('Services', Icons.ServiceIcon), + [COLLECTION.USER]: new CollectionImpl('Users', Icons.UserIcon) } \ No newline at end of file