mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-05 18:26:45 -05:00
restructuring folders
This commit is contained in:
38
app/Fragments/Button/index.js
Normal file
38
app/Fragments/Button/index.js
Normal file
@@ -0,0 +1,38 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user