import React from "react"; import {Subapp, useSubapp} from "../src/Components/Subapps/Subapps"; import {Card} from "../src/Components/Card"; import {useKernelContext} from "../src/KernelGlobalContext"; import {KernelContext} from "./DemoKernelContext"; /** * A demo Subapp component. */ export function DemoSubapp() { // Get subapp close function. const {uuid, close} = useSubapp(); // Get kernel context data. const [kernelContext] = useKernelContext(KernelContext); return (

This is a complex subapp.

UUID : {uuid}

{kernelContext &&

Kernel context data: {kernelContext}

}
); }