export const ChartIcon = ({ icon, size = 20 }) => {
const icons = {
'database': (
),
'filter': (
),
'axis-x': (
),
'axis-y': (
),
'sum': (
),
'chart-pie': (
),
'chart-line': (
),
'calendar': (
),
'arrows-sort': (
),
'filters': (
),
'chart-bar-popular': (
),
'math-min': (
),
'math-max': (
),
'color-swatch': (
),
'gizmo': (
),
'stack-2': (
),
'badge-2k': (
),
'text-caption': (
),
'eye-off': (
),
'caret-left': (
),
'caret-right': (
),
'number-123': (
),
'frame': (
),
'align-box-left-top': (
),
};
const selectedIcon = icons[icon];
if (!selectedIcon) {
return null;
}
return selectedIcon;
};