mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-05 18:26:45 -05:00
39 lines
572 B
JavaScript
39 lines
572 B
JavaScript
import React from 'react';
|
|
|
|
import styles from './style.module.scss'
|
|
|
|
const Button = ({
|
|
children,
|
|
className,
|
|
color = 'black',
|
|
type = 'button',
|
|
...props
|
|
}) => (
|
|
<button
|
|
className={`${className} Button Button_${color}`}
|
|
type={type}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</button>
|
|
);
|
|
|
|
const ButtonUnobtrusive = ({
|
|
children,
|
|
className,
|
|
type = 'button',
|
|
...props
|
|
}) => (
|
|
<button
|
|
className={`${className} Button_unobtrusive`}
|
|
type={type}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</button>
|
|
);
|
|
|
|
export { ButtonUnobtrusive };
|
|
|
|
export default Button;
|