import type { JSX } from "solid-js"; export interface GlassCardProps { heading?: string; accessory?: JSX.Element; class?: string; contentClass?: string; bare?: boolean; children: JSX.Element; style?: JSX.CSSProperties; } // Single glass surface used for every section card. The `bare` variant skips // the inset content padding so tables/log lists can reach the edge. export function GlassCard(props: GlassCardProps): JSX.Element { const cls = (): string => { const base = "glass glass-rise rounded-lg overflow-hidden"; return props.class ? `${base} ${props.class}` : base; }; return (
{props.heading != null && (

{props.heading}

{props.accessory &&
{props.accessory}
}
)}
{props.children}
); }