import { h, Component } from "preact"; import { useState } from "preact/hooks"; import { ContractProvider } from "../components/ContractContext"; import { Navigation } from "../components/Navigation"; import { MyPlanetsView } from "./MyPlanetsView"; import { MyListingsView } from "./MyListingsView"; import { MyOrdersView } from "./MyOrdersView"; import { MarketView } from "./MarketView"; import { GuideView } from "./GuideView"; export function AppView({ contract }) { const [activeTabId, setActiveTab] = useState(0); return ( // contractsProvider has `game` and `market` contracts ); }