"use client"; import { BG_MODE_OPTIONS, type BgMode } from "@/lib/bg"; /** 铺放示意:16:9 小窗里用色块表达裁切 / 完整 / 平铺 / 拉伸。 */ function ModeGlyph({ mode }: { mode: BgMode }) { const photo = "var(--accent-soft)"; const ink = "var(--accent)"; return ( {mode === "cover" && ( )} {mode === "contain" && ( )} {mode === "repeat" && ( {Array.from({ length: 6 }, (_, i) => ( ))} )} {mode === "stretch" && ( )} ); } export default function BgModePicker({ value, onChange, disabled, ariaLabel, }: { value: BgMode; onChange: (mode: BgMode) => void; disabled?: boolean; ariaLabel: string; }) { return (