import React from 'react'
import { Button } from 'antd'

interface DefaultButtonProps {
    name?: string
    clickAction: () => void
}

const DefaultButton = (props: DefaultButtonProps): React.ReactElement => {
    const { name = 'Add New', clickAction } = props

    return (
        <Button type="default" onClick={clickAction}>
            {name}
        </Button>
    )
}

export default DefaultButton
