mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 17:04:15 +00:00
14 lines
290 B
TypeScript
14 lines
290 B
TypeScript
import styles from '../menu.module.css';
|
|
|
|
interface ButtonProps {
|
|
children: React.ReactNode;
|
|
onClick: () => void;
|
|
}
|
|
|
|
export function Button({ children, onClick }: ButtonProps) {
|
|
return (
|
|
<button className={styles.menuItem} onClick={onClick}>
|
|
{children}
|
|
</button>
|
|
);
|
|
}
|