import React from 'react'; import IconInput from './input-icon'; import PasswordInput from './input-password'; import connect from "../connect"; export interface Props { type: 'icon' | 'password'; } const TplInput: React.FC = ({ type }) => { if (type === 'icon') return ; if (type === 'password') return ; return null; }; export default connect(TplInput, {}, { 'icon': (IconInput as any).default, 'password': (PasswordInput as any).default, });