Skip to content

An open-source, self-hosted system for apps built with web technologies.

773 B
Raw Blame
import logo from "@/assets/logo.png"

/**
 * The System identity shared by System-owned panels. It is content only: the
 * holder, such as a Panel header, decides the space around it.
 */
export default function SystemHeader({ labelId, name, version }: Readonly<{

    labelId?: string

    name: string

    version: string
}>) {

    return <div className="relative grid min-w-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-3 select-none">

        <img src={logo} alt="" draggable={false} className="size-4 rounded-sm object-contain" />

        <h2 id={labelId} className="m-0 truncate text-window-title font-medium">{name}</h2>

        <span className="text-xs tabular-nums opacity-60" aria-label={`System version ${version}`}>v{version}</span>

    </div>
}