import { Link, useParams } from 'react-router';
import { ExternalLink, GitBranch, Plug } from 'lucide-react';
// The panel header, which is where the settings live.
//
// They were floating buttons over the top-right of the iframe first, and that was wrong twice: they sit
// on top of Gitea's own controls, and an overlay on an application that fills its panel is invisible
// until you already know it is there. The header is the platform's own furniture — always present, never
// competing with the content underneath.
const FRAME_SRC = '/api/gitea/_web/';
export const GiteaViewHeader = () => {
const { section } = useParams();
const onConnection = section === 'connection';
return (
<>
{onConnection ? 'Gitea — connection' : 'Gitea'}
{/* Real links, so they are cmd-clickable like any other navigation. */}
>
);
};