From 2f6a071c46408e622e7b5bd00df24deb34438f9d Mon Sep 17 00:00:00 2001 From: xiaowei Date: Fri, 20 Nov 2020 14:43:31 +0800 Subject: [PATCH] feat(icon): add icon component based on codicons --- src/components/icon/index.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/components/icon/index.tsx diff --git a/src/components/icon/index.tsx b/src/components/icon/index.tsx new file mode 100644 index 000000000..87c2b4295 --- /dev/null +++ b/src/components/icon/index.tsx @@ -0,0 +1,14 @@ +import { classNames, prefixClaName } from 'mo/common/className'; +import * as React from 'react'; + +export interface IIcon { + type: string; + className?: string; +} + +export function Icon(props: IIcon) { + const { className, type, ...others } = props; + return ( + + ) +} \ No newline at end of file