import { useState } from "react";
export default function TitleBar() {
const [pinned, setPinned] = useState(false);
const call = async (method: string) => {
const api = (window as any)?.aeBridge;
if (!api || !api[method]) return;
const res = await api[method]();
if (method === "togglePin") setPinned(res);
};
return (
AeThex Terminal
);
}
function btnStyle(bg: string) {
return {
border: "1px solid #111827",
background: bg,
color: "#e5e7eb",
borderRadius: 6,
padding: "4px 8px",
cursor: "pointer",
fontSize: 12,
minWidth: 46,
} as React.CSSProperties;
}