diff --git a/pkgs/webview-ui/app/src/layout/header.tsx b/pkgs/webview-ui/app/src/layout/header.tsx index 3924a299d..45859f909 100644 --- a/pkgs/webview-ui/app/src/layout/header.tsx +++ b/pkgs/webview-ui/app/src/layout/header.tsx @@ -1,33 +1,13 @@ -import { createQuery } from "@tanstack/solid-query"; -import { activeURI } from "../App"; -import { callApi } from "../api"; -import { Accessor, Show } from "solid-js"; -import { useNavigate } from "@solidjs/router"; - -import Icon from "../components/icon"; -import { Button } from "../components/button"; +import { JSX } from "solid-js"; +import { Typography } from "../components/Typography"; interface HeaderProps { - clan_dir: Accessor; + title: string; + toolbar?: JSX.Element; } export const Header = (props: HeaderProps) => { - const { clan_dir } = props; - const navigate = useNavigate(); - - const query = createQuery(() => ({ - queryKey: [clan_dir(), "meta"], - queryFn: async () => { - const curr = clan_dir(); - if (curr) { - const result = await callApi("show_clan_meta", { uri: curr }); - if (result.status === "error") throw new Error("Failed to fetch data"); - return result.data; - } - }, - })); - return ( -