70 lines
2.3 KiB
TypeScript
70 lines
2.3 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
|
|
import React, { FunctionComponent } from 'react';
|
|
import { ViewProps } from 'react-native';
|
|
import { GProps } from 'react-native-svg';
|
|
import IconZhichu from './IconZhichu';
|
|
import IconShouru from './IconShouru';
|
|
import IconJiaotong from './IconJiaotong';
|
|
import IconShucai from './IconShucai';
|
|
import IconRiyongpin from './IconRiyongpin';
|
|
import IconYule from './IconYule';
|
|
import IconLingshi from './IconLingshi';
|
|
import IconQuxian1 from './IconQuxian1';
|
|
import IconWeixin from './IconWeixin';
|
|
import IconZhiwen from './IconZhiwen';
|
|
import IconQq from './IconQq';
|
|
export { default as IconZhichu } from './IconZhichu';
|
|
export { default as IconShouru } from './IconShouru';
|
|
export { default as IconJiaotong } from './IconJiaotong';
|
|
export { default as IconShucai } from './IconShucai';
|
|
export { default as IconRiyongpin } from './IconRiyongpin';
|
|
export { default as IconYule } from './IconYule';
|
|
export { default as IconLingshi } from './IconLingshi';
|
|
export { default as IconQuxian1 } from './IconQuxian1';
|
|
export { default as IconWeixin } from './IconWeixin';
|
|
export { default as IconZhiwen } from './IconZhiwen';
|
|
export { default as IconQq } from './IconQq';
|
|
|
|
export type IconNames = 'zhichu' | 'shouru' | 'jiaotong' | 'shucai' | 'riyongpin' | 'yule' | 'lingshi' | 'quxian1' | 'weixin' | 'zhiwen' | 'QQ';
|
|
|
|
interface Props extends GProps, ViewProps {
|
|
name: IconNames;
|
|
size?: number;
|
|
color?: string | string[];
|
|
}
|
|
|
|
let IconFont: FunctionComponent<Props> = ({ name, ...rest }) => {
|
|
switch (name) {
|
|
case 'zhichu':
|
|
return <IconZhichu key="1" {...rest} />;
|
|
case 'shouru':
|
|
return <IconShouru key="2" {...rest} />;
|
|
case 'jiaotong':
|
|
return <IconJiaotong key="3" {...rest} />;
|
|
case 'shucai':
|
|
return <IconShucai key="4" {...rest} />;
|
|
case 'riyongpin':
|
|
return <IconRiyongpin key="5" {...rest} />;
|
|
case 'yule':
|
|
return <IconYule key="6" {...rest} />;
|
|
case 'lingshi':
|
|
return <IconLingshi key="7" {...rest} />;
|
|
case 'quxian1':
|
|
return <IconQuxian1 key="8" {...rest} />;
|
|
case 'weixin':
|
|
return <IconWeixin key="9" {...rest} />;
|
|
case 'zhiwen':
|
|
return <IconZhiwen key="10" {...rest} />;
|
|
case 'QQ':
|
|
return <IconQq key="11" {...rest} />;
|
|
}
|
|
|
|
return null;
|
|
};
|
|
|
|
IconFont = React.memo ? React.memo(IconFont) : IconFont;
|
|
|
|
export default IconFont;
|