    return (
      <Component
        {...(Component === 'input' && { type: type })}
        className={_className}
        {...rest}
        ref={ref}
      >
        {children}
      </Component>
    )
  },
)