mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 19:46:20 +00:00
12 lines
263 B
JavaScript
12 lines
263 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)
|
|
},
|
|
})
|