* feat: rewrite public UI component rendering using tunnels * factor out into components * comments * fix variable naming * fix not hiding welcomeScreen * factor out AppFooter and memoize components * remove `UIOptions.welcomeScreen` and render only from host app * factor out tunnels into own file * update changelog. Keep `UIOptions.welcomeScreen` as deprecated * update changelog * lint --------- Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
27 lines
576 B
TypeScript
27 lines
576 B
TypeScript
import { Center } from "./WelcomeScreen.Center";
|
|
import { MenuHint, ToolbarHint, HelpHint } from "./WelcomeScreen.Hints";
|
|
|
|
import "./WelcomeScreen.scss";
|
|
|
|
const WelcomeScreen = (props: { children?: React.ReactNode }) => {
|
|
return (
|
|
<>
|
|
{props.children || (
|
|
<>
|
|
<Center />
|
|
<MenuHint />
|
|
<ToolbarHint />
|
|
<HelpHint />
|
|
</>
|
|
)}
|
|
</>
|
|
);
|
|
};
|
|
|
|
WelcomeScreen.displayName = "WelcomeScreen";
|
|
|
|
WelcomeScreen.Center = Center;
|
|
WelcomeScreen.Hints = { MenuHint, ToolbarHint, HelpHint };
|
|
|
|
export default WelcomeScreen;
|