- discord-gateway: 74 lint errors -> 0 (format, import sorting, unused imports/vars, dead breath var) - backend: format + sort imports (11 warnings left: noExplicitAny) - frontend: remove unused imports, drop dead breathing var, fix useExhaustiveDependencies (scroll keyed on messages), a11y biome-ignore for drag surface + stopPropagation container (mouse-only gestures) - remaining warnings are false positives: index keys on static lists, <img> in static export (next/image unsupported), noExplicitAny tsc --noEmit clean on all 3 services; vitest green (60+36).
29 lines
504 B
TypeScript
29 lines
504 B
TypeScript
"use client";
|
|
|
|
import type { ComponentPropsWithoutRef } from "react";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
interface GlassPanelProps extends ComponentPropsWithoutRef<"div"> {
|
|
dense?: boolean;
|
|
}
|
|
|
|
export function GlassPanel({
|
|
dense = false,
|
|
className,
|
|
children,
|
|
...props
|
|
}: GlassPanelProps) {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
"glass rounded-[var(--radius-panel)]",
|
|
dense ? "p-3" : "p-4",
|
|
className,
|
|
)}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|