UNPKG

tuya-panel-kit

Version:

a functional component library for developing tuya device panels!

9 lines (7 loc) 227 B
import React from 'react'; import IconFontSvg from './svg'; import IconFontART from './art'; export default ({ useART, ...rest }) => { const IconFont = useART ? IconFontART : IconFontSvg; return <IconFont {...rest} />; };