Files
illogical-impulse/.config/ags/widgets/sideleft/module.js
T
2024-01-11 16:50:12 +07:00

30 lines
809 B
JavaScript

import Widget from 'resource:///com/github/Aylur/ags/widget.js';
const { Box, Button, Label } = Widget;
export const SidebarModule = ({
name,
child
}) => {
return Box({
className: 'sidebar-module',
vertical: true,
children: [
Button({
child: Box({
children: [
Label({
className: 'txt-small txt',
label: `${name}`,
}),
Box({
hexpand: true,
}),
Label({
className: 'sidebar-module-btn-arrow',
})
]
})
})
]
});
}