import { createVNode } from 'vue';
import * as $Icon from '@ant-design/icons-vue';

export const Icon = (props: { icon: string; twoToneColor: string }) => {
  const { icon } = props;

  const antIcon: { [key: string]: any } = $Icon;
  return createVNode(antIcon[icon]);
};
