import { useRef } from "react"; import { locales, type WelcomeEntry } from "../../locales"; import { useCopy } from "../../ui/copy"; import { Glyph, type GlyphName } from "../../ui/icons"; import { useRotatingText } from "../../ui/use-text-rotation"; // Original 5x5 pseudo-letters; recurring ideas keep the same pixel word. const PIXEL_LETTERS = [ [31, 17, 21, 17, 31], [4, 14, 21, 4, 10], [17, 31, 4, 14, 4], [14, 10, 31, 4, 4], [17, 17, 31, 4, 14], [31, 4, 14, 17, 31], [4, 31, 10, 14, 17], [21, 14, 4, 14, 21], [31, 16, 23, 17, 31], [14, 4, 31, 17, 14], [17, 14, 4, 31, 4], [31, 1, 15, 8, 31], ]; function PixelWord({ symbol }: { symbol: GlyphName }) { const seed = Array.from(symbol).reduce((sum, char) => sum + char.charCodeAt(0), 0); return ; } export function WelcomeCipher({ symbols }: Pick) { return ; } /** Welcome decoration never describes loading or connection progress. */ export function WelcomeLine({ still = false }: { still?: boolean }) { const { lang, vis } = useCopy(); const element = useRef(null); const line = useRotatingText(locales[lang].playful.welcome, lang, { element, still, rotate: false }); if (!line) return null; return

{vis ? : {line.text}}

; }