import { IReactAutoComplete } from '@wowpic/xform-types';
import { AutoComplete as AntdAutoComplete } from 'antd';
import React, { FunctionComponent } from 'react';

const AutoComplete: FunctionComponent<IReactAutoComplete> = ({
    children,
    ...props
}) => {
    return (
        <AntdAutoComplete
            style={{ minWidth: '70px' }}
            {...props}>
            {children}
        </AntdAutoComplete>
    );
};

export default AutoComplete;
