import React from 'react' ; import { Button } from 'antd-mobile' ; import { ButtonProps } from 'antd' ; interface IProps extends ButtonProps { text : string ; } export default function ( props ) { const { text , ... rest } = props ; return < Button { ... rest } > { text } < /Button>; }