import React from 'react' ; import { Button } from 'antd' ; import styles from './index.module.scss' ; import { ButtonProps } from 'antd/lib/button' ; export const TextButton = ( { children , className , ... rest } ) => { return ( < Button type = "primary" ghost className = { `${ className || '' } ${ styles [ 'button-text' ] }` } { ... rest } > { children } < /Button>); } ;