Reconmap/web-client

View on GitHub
src/components/ui/buttons/Primary.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import { Button } from "@chakra-ui/react";

const PrimaryButton = ({
    type,
    onClick,
    children,
    disabled = false,
    external = false,
    ...props
}) => {

    return <Button {...props} type={type ? type : "button"} onClick={onClick} isDisabled={disabled}>
        {children}
    </Button>
}

export default PrimaryButton;