// Component Source: https://darkforest.market/ import { h } from "preact"; import { useState } from "preact/hooks"; // import { useWallet } from "../hooks/use-wallet"; import { colors } from "../helpers/theme"; import { Button } from "../components/Button"; const styles = { container: { position: "relative", height: "100%", }, tabs: { display: "grid", position: "absolute", padding: "8px", gridColumnGap: "8px", justifyContent: "flex-start", gridTemplateColumns: "auto auto auto auto auto 1fr", alignItems: "center", top: 0, width: "100%", background: colors.background, borderBottom: `1px solid ${colors.borderlight}`, }, content: { paddingTop: "40px", paddingBottom: "40px", height: "100%", overflowY: "scroll", }, }; export function Navigation({ tabs }) { const [activeTab, setActiveTab] = useState(tabs[0].name); // const { balanceShort } = useWallet(); const { TabContent } = tabs.find((tab) => tab.name === activeTab); const styleTab = (isActive?) => ({ color: isActive ? colors.dfwhite : colors.muted, background: colors.background, }); return (