import type { ReactNode } from "react"; function Corner({ pos }: { pos: "tl" | "tr" | "bl" | "br" }) { const base: React.CSSProperties = { position: "absolute", width: 9, height: 9, borderColor: "var(--mizu-accent)", }; const posStyle: Record = { tl: { top: -1, left: -1, borderTop: "1px solid", borderLeft: "1px solid" }, tr: { top: -1, right: -1, borderTop: "1px solid", borderRight: "1px solid", }, bl: { bottom: -1, left: -1, borderBottom: "1px solid", borderLeft: "1px solid", }, br: { bottom: -1, right: -1, borderBottom: "1px solid", borderRight: "1px solid", }, }; return ; } export function Frame({ label, children, className = "", style, tone = "line", }: { label?: string; children: ReactNode; className?: string; style?: React.CSSProperties; tone?: "line" | "line-bright"; }) { return (
{children} {label && (
{label}
)}
); }