ant-design/components/icon/index.tsx
vagusX 38cf5e8a75
docs: unify component export file as index.tsx ()
* 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>
2024-07-23 22:22:24 +08:00

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;