import React from 'react';
import StepperAdd from './stepper-add';
import connect from "../connect";

export interface Props {
  type:
    | 'add'; // 直接添加
}

const TplStepper: React.FC<Props> = ({ type, ...otherProps }) => {
  if (type === 'add')
    return <StepperAdd {...otherProps} />;
  return null;
};

export default connect(TplStepper, {}, {
  'add': (StepperAdd as any).default
});
