2023-05-26 19:59:42 +03:00
|
|
|
import React from "react";
|
|
|
|
|
2023-06-22 14:56:31 +03:00
|
|
|
import "./basebutton.scss";
|
2023-05-26 19:59:42 +03:00
|
|
|
|
2023-11-27 14:39:11 +03:00
|
|
|
export const BaseButton = ({ children, styles, onClick, ...props }) => {
|
2023-05-26 19:59:42 +03:00
|
|
|
return (
|
2023-11-27 14:39:11 +03:00
|
|
|
<button onClick={onClick} className={styles ? `${styles} button` : "button"} {...props}>
|
2023-05-26 19:59:42 +03:00
|
|
|
{children}
|
|
|
|
</button>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2023-05-29 15:01:38 +03:00
|
|
|
export default BaseButton;
|