import React from "react"; import {Subapp, useSubapp} from "../src/Components/Subapps/Subapps"; import {Card} from "../src/Components/Card"; import {useKernelApplicationData} from "../src/KernelContext"; /** * A demo Subapp component. */ export function DemoSubapp() { // Get subapp close function. const {uuid, close} = useSubapp(); // Get kernel application custom data. const [kernelApplicationData] = useKernelApplicationData("customData", ""); return (

This is a complex subapp.

UUID : {uuid}

{kernelApplicationData &&

Kernel application data: {kernelApplicationData}

}
); }