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

18 lines
373 B
JavaScript
Raw Normal View History

import { Box } from 'resource:///com/github/Aylur/ags/widget.js';
export default (size, { vertical = false, ...props } = {}) => {
2023-11-06 18:37:23 -05:00
if (vertical) {
return Box({
2023-11-06 18:37:23 -05:00
css: `min-height: ${size}px;`,
...props,
});
}
else {
return Box({
2023-11-06 18:37:23 -05:00
css: `min-width: ${size}px;`,
...props,
});
}
};