moved stuff out of app since it is used for routing

This commit is contained in:
2024-11-20 23:16:26 -05:00
parent d1bd68e720
commit fd08fd2886
136 changed files with 56 additions and 46 deletions

View 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;