import { IconTypes } from '../types/IconTypes';
import React, { Fragment } from 'react';
interface Props {
type: IconTypes;
}
export const Icon = ({ type }: Props) => {
const content = iconMap[type];
return (
);
};
const chevron = (
);
const close = (
);
const file = (
);
const grid = (
);
const list = (
);
const loader = (
);
const search = (
);
const tag = (
);
const upload = (
);
const iconMap = { chevron, close, file, grid, list, loader, search, tag, upload };