// @ts-nocheck — vendored, see PROVENANCE.md "use client"; import { useState } from "react"; import { motion } from "motion/react"; import { FONTS, Palette, SHAPES, ShapeScale, Theme } from "../lib/tokens"; import { ensureFontLoaded } from "../lib/theme"; import { Lang, t, useLang } from "../lib/i18n"; import { Icon } from "./M3Node"; import { Toggle } from "./ui"; const shapeLabel = (k: ShapeScale, lang: Lang) => (k === "square" ? t("shapeSquare", lang) : k === "full" ? t("shapeFull", lang) : t("shapeRounded", lang)); /** the corner radius a 28dp default becomes under each scale, for the option art */ const previewR = (k: ShapeScale) => (k === "square" ? 6 : k === "full" ? 28 : 16); function Hint({ p, children }: { p: Palette; children: React.ReactNode }) { return