14 lines
301 B
React
Raw Normal View History

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>
);
};
export default BaseButton;