import { ReactSVGComponentType } from '@preply/ds-web-core';

import { iconMap } from '../constants/icon-imports';

export const importSvgFileName = (name: string): ReactSVGComponentType => {
    const iconFileName = iconMap[name];
    return iconFileName;
};
