Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

600 B
Raw Blame
"use client";

import { createContext, useContext, type ReactNode } from "react";
import type { Brand } from "./types";

// The consumer's brand (name / logo / default wallpaper). Generic chrome reads
// this instead of hardcoding strings, so the same shell renders any project.
const BrandContext = createContext<Brand>({ name: "App" });

export function BrandProvider({
  brand,
  children,
}: {
  brand: Brand;
  children: ReactNode;
}) {
  return <BrandContext.Provider value={brand}>{children}</BrandContext.Provider>;
}

export function useBrand(): Brand {
  return useContext(BrandContext);
}