mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
17 lines
425 B
JavaScript
17 lines
425 B
JavaScript
import classNames from 'classnames';
|
|
import styles from './ButtonLayout.module.css';
|
|
|
|
export default function ButtonLayout({ className, children, align = 'center' }) {
|
|
return (
|
|
<div
|
|
className={classNames(styles.buttons, className, {
|
|
[styles.left]: align === 'left',
|
|
[styles.center]: align === 'center',
|
|
[styles.right]: align === 'right',
|
|
})}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|