umami/components/layout/ButtonLayout.js

17 lines
425 B
JavaScript
Raw Normal View History

import classNames from 'classnames';
import styles from './ButtonLayout.module.css';
2020-09-22 06:34:55 +02:00
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>
);
}