Spaces:
Running
Running
Deploy hyper3labs/HyperView from Hyper3Labs/hyperview-spaces@eac89bc
Browse files
.hyperview/extensions/hello-world-intro/panel.jsx
CHANGED
|
@@ -3,8 +3,12 @@ if (!sdk || sdk.version !== "2") {
|
|
| 3 |
throw new Error("HyperViewPanelSDK v2 is not available on window.");
|
| 4 |
}
|
| 5 |
|
| 6 |
-
const { React, components, hooks } = sdk;
|
| 7 |
-
const
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
const { usePanelState, useSelection } = hooks;
|
| 9 |
|
| 10 |
const geometryColors = {
|
|
|
|
| 3 |
throw new Error("HyperViewPanelSDK v2 is not available on window.");
|
| 4 |
}
|
| 5 |
|
| 6 |
+
const { React, components = {}, hooks = {} } = sdk;
|
| 7 |
+
const Panel = components.Panel || (({ children, className = "" }) => (
|
| 8 |
+
<div className={`flex flex-col h-full bg-card overflow-hidden ${className}`.trim()} style={{ height: "100%" }}>
|
| 9 |
+
{children}
|
| 10 |
+
</div>
|
| 11 |
+
));
|
| 12 |
const { usePanelState, useSelection } = hooks;
|
| 13 |
|
| 14 |
const geometryColors = {
|