import { Dither } from "../dither";
import { LayoutCanvas } from "./layout-canvas";
import { useResolvedTheme } from "../theme";
import { glow } from "../../lib/glow";
type Props = {
/** Use static CSS dither instead of WebGPU canvas. */
fallback?: boolean;
/** Enable the rounded-rect glow around `.layout:main` to signal a loading state. */
loading?: boolean;
/** Multiplier for glow opacity. */
glowOpacity?: number;
/** Glow fade-in duration in seconds (0 = canvas default). */
glowFadeIn?: number;
/** Glow fade-out duration in seconds (0 = canvas default). */
glowFadeOut?: number;
};
/** Renders the layout background — either a WebGPU canvas or static CSS dither fallback. */
function LayoutBackground({ fallback, loading, glowOpacity, glowFadeIn, glowFadeOut }: Props) {
let scheme = useResolvedTheme();
let color = "#7a9e85";
let tint = "#7a9e8525";
let alpha = 0.1;
let noise = 0.22;
if (fallback) {
return (
<>
>
);
}
return (
);
}
export { LayoutBackground };