Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const getBaseIconPath = (category, direction) => {
const nameMap = direction === 'rtl' ? tokenNameMapRtl : tokenNameMap;
return (
getToken(nameMap[category]) || getDefaultBaseIconPath(category, nameMap)
);
};