import Input from './Input.jsx';

export default D.declare('view.cmp.field.PhoneInput', (cfg, children)=> {
  return <div class={D.cls( "labeled-field", cfg.cls, { "labeled-field--invalid": cfg.invalid } )}>
    <label class="labeled-field__label">2
      <span class="labeled-field__label-text">{cfg.label}</span>
      <Input class="labeled-field__input" type={cfg.type} placeholder={cfg.placeholder} {...cfg}/>
    </label>
    {children}
  </div>
})
