Extract panel header to title bar (#625)

This commit is contained in:
Will Chen
2025-07-10 16:37:05 -07:00
committed by GitHub
parent 5f3dea6180
commit 4b84b12fe3
6 changed files with 253 additions and 237 deletions

View File

@@ -1,4 +1,5 @@
import { useState, useCallback } from "react";
import { useCallback } from "react";
import { atom } from "jotai";
import { IpcClient } from "@/ipc/ipc_client";
import {
appOutputAtom,
@@ -11,8 +12,10 @@ import {
import { useAtom, useAtomValue, useSetAtom } from "jotai";
import { AppOutput } from "@/ipc/ipc_types";
const useRunAppLoadingAtom = atom(false);
export function useRunApp() {
const [loading, setLoading] = useState(false);
const [loading, setLoading] = useAtom(useRunAppLoadingAtom);
const [app, setApp] = useAtom(currentAppAtom);
const setAppOutput = useSetAtom(appOutputAtom);
const [appUrlObj, setAppUrlObj] = useAtom(appUrlAtom);