mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-23 18:50:06 +08:00
38cf5e8a75
* docs: unify component export file as index.tsx * docs: compatible with old anchors * chore: clean * test: update snapshot * fix: window env --------- Co-authored-by: Peach <scdzwyxst@gmail.com>
13 lines
260 B
TypeScript
Executable File
13 lines
260 B
TypeScript
Executable File
import { devUseWarning } from '../_util/warning';
|
|
|
|
const Icon: React.FC = () => {
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
const warning = devUseWarning('Icon');
|
|
|
|
warning(false, 'usage', 'Empty Icon');
|
|
}
|
|
return null;
|
|
};
|
|
|
|
export default Icon;
|