-const getUrl = (resource: any) => {
- let url: string | null = null;
- const { uuid, kind } = resource;
-
- if (kind === ResourceKind.COLLECTION) {
- url = `/collections/${uuid}`;
- }
- if (kind === ResourceKind.PROJECT) {
- url = `/projects/${uuid}`;
- }
-
- return url;
-};
-