MCPcopy Create free account
hub / github.com/Recordscript/recordscript / NotificationInfo

Function NotificationInfo

src/App.tsx:300–317  ·  view source on GitHub ↗
(
    props: P,
)

Source from the content-addressed store, hash-verified

298}
299
300function NotificationInfo<P extends { title: string; message: string, override_on_click?: () => void }>(
301 props: P,
302) {
303 return (
304 <div class="bg-zinc-700 bg-opacity-75 p-2 rounded text-white" onclick={(e) => {
305 if (props.override_on_click) {
306 e.stopPropagation();
307
308 props.override_on_click();
309 }
310 }}>
311 <h3 class="font-extrabold">{props.title}</h3>
312 <p class="text-sm whitespace-pre-line">
313 {props.message}
314 </p>
315 </div>
316 );
317}
318
319function App() {
320 const [popup, set_popup] = createSignal<JSX.Element | null>(null);

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected