Files
baserow/web-frontend/modules/core/utils/icon.js
T

9 lines
205 B
JavaScript

import {
DATA_TYPE_TO_ICON_MAP,
UNKNOWN_DATA_TYPE_ICON,
} from '@baserow/modules/core/enums'
export const getIconForType = (type) => {
return DATA_TYPE_TO_ICON_MAP[type] || UNKNOWN_DATA_TYPE_ICON
}