import React from 'react';
import LinesButton from './button-lines';
import connect from "../connect";

export interface Props {
  type:
    | 'lines-button'; // 多行按钮
}

const TplButton: React.FC<Props> = ({ type, ...otherProps }) => {
  if (type === 'lines-button') return <LinesButton {...otherProps} />;
  return null;
};

export default connect(TplButton, {}, {
  'lines-button': (TplButton as any).default
});
