mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-03 06:12:51 +00:00
10 lines
268 B
JavaScript
10 lines
268 B
JavaScript
const { Gdk, Gtk } = imports.gi;
|
|
import { Widget } from '../../imports.js';
|
|
|
|
export const ContextMenuItem = ({ label, onClick }) => Widget({
|
|
type: Gtk.MenuItem,
|
|
label: `${label}`,
|
|
setup: menuItem => {
|
|
menuItem.connect("activate", onClick);
|
|
}
|
|
}) |