nixos-configs/devices/wim/config/ags/js/misc/separator.js

16 lines
325 B
JavaScript

import { Widget } from '../../imports.js';
const { Box } = Widget;
export default (size, { vertical = false } = {}) => {
if (vertical) {
return Box({
style: `min-height: ${size}px;`,
});
}
else {
return Box({
style: `min-width: ${size}px;`,
});
}
};