mirror of
https://github.com/cypress-io/cypress.git
synced 2026-03-11 03:49:47 -05:00
24 lines
501 B
JavaScript
24 lines
501 B
JavaScript
import * as React from 'react'
|
|
import * as PropTypes from 'prop-types'
|
|
import styles from './Button.modules.css'
|
|
|
|
export const Button = ({ name, orange, wide }) => {
|
|
const className = [
|
|
styles.componentButton,
|
|
orange ? styles.orange : '',
|
|
wide ? styles.wide : '',
|
|
]
|
|
|
|
return (
|
|
<div className={className.join(' ').trim()}>
|
|
<button>{name}</button>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
Button.propTypes = {
|
|
orange: PropTypes.bool,
|
|
wide: PropTypes.bool,
|
|
name: PropTypes.string.isRequired,
|
|
}
|