import { Button , withStyles , WithStyles } from "@material-ui/core" ; import { ButtonProps } from "@material-ui/core/Button" ; import * as React from "react" ; import { compose , pure , setDisplayName } from "recompose" ; import { Styles , styles } from "./FormButton.styles" ; /**
 * Form button properties
 */ export type FormButtonProps = ButtonProps ; /**
 * Render properties
 */ export type RenderProps = FormButtonProps & WithStyles < Styles > ; param props return export const Render = ( { classes , ... props } ) => < Button type = "submit" variant = "contained" color = "primary" fullWidth = { true } className = { classes . root } { ... props } />; return export function enhance ( ) { return compose < RenderProps , FormButtonProps > ( withStyles ( styles ) , pure , setDisplayName ( "FormButton" ) ) ; } /**
 * Form button component
 */ export const FormButton = enhance ( ) ( Render ) ;