MCPcopy
hub / github.com/refined-github/refined-github / createMessageBox

Function createMessageBox

source/helpers/bisect.tsx:37–48  ·  view source on GitHub ↗
(message: Element | string, extraButtons?: Element)

Source from the content-addressed store, hash-verified

35}
36
37function createMessageBox(message: Element | string, extraButtons?: Element): void {
38 $optional('#rgh-bisect-dialog')?.remove();
39 document.body.append(
40 <div id="rgh-bisect-dialog" className="Box p-3 tmp-p-3">
41 <p>{message}</p>
42 <div className="d-flex flex-justify-between">
43 <button type="button" className="btn" onClick={onEndButtonClick}>Exit</button>
44 {extraButtons}
45 </div>
46 </div>,
47 );
48}
49
50async function hideMessage(): Promise<void> {
51 if (!(await state.get())) {

Callers 3

hideMessageFunction · 0.85
onChoiceButtonClickFunction · 0.85
bisectFeaturesFunction · 0.85

Calls 2

removeMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected