16 lines
288 B
JavaScript
16 lines
288 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;`,
|
|
});
|
|
}
|
|
}
|