// This file should only be used with stories. we cannot export those arrays from stories because storybook will try to render them as story // eslint-disable-next-line no-restricted-imports import assets from 'aws-assets'; import { ASSETS_URL } from '../../consts/common'; function filePathsToUrls(filePaths: string[], startPath?: string) { return filePaths .filter(filePath => startPath ? filePath.startsWith(startPath) && filePath !== startPath : filePath ) .map(path => ASSETS_URL + '/' + path); } export const oldIconSources = filePathsToUrls(assets, 'icons/'); export const newIconSources = filePathsToUrls(assets, 'icons2/'); export const imagesAppsSources = filePathsToUrls(assets, 'images/apps/'); export const imagesProvidersSources = filePathsToUrls(assets, 'images/providers/');