mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
19 lines
484 B
JavaScript
19 lines
484 B
JavaScript
|
import { Row, cloneChildren } from 'react-basics';
|
||
|
import styles from './GridRow.module.css';
|
||
|
import classNames from 'classnames';
|
||
|
|
||
|
export default function GridRow(props) {
|
||
|
const { children, className, ...rowProps } = props;
|
||
|
return (
|
||
|
<Row {...rowProps} className={className}>
|
||
|
{breakpoint =>
|
||
|
cloneChildren(children, () => {
|
||
|
return {
|
||
|
className: classNames(styles.column, styles[breakpoint]),
|
||
|
};
|
||
|
})
|
||
|
}
|
||
|
</Row>
|
||
|
);
|
||
|
}
|