// PEP-70: Peppa's mascot — a soft "clay" chibi pug with a terminal prompt (`> _`) glowing on its belly. // Pure SVG (no external images), fixed colours that read on both themes; motion only without // reduced-motion (see .pug-* in app.css). "use client"; import { useId } from "react"; import { cn } from "@/lib/utils"; import { useT } from "@/components/I18n"; type Mood = "sleep" | "alert"; export function PugMascot({ mood, size = 96, className }: { mood: Mood; size?: number; className?: string }) { const t = useT(); const awake = mood === "alert"; const id = useId().replace(/[^a-zA-Z0-9]/g, ""); const fur = `pf${id}`, furDark = `pd${id}`, ear = `pe${id}`, screen = `ps${id}`, glow = `pg${id}`, soft = `po${id}`; return ( {/* floor shadow */} {/* curly tail */} {/* legs */} {/* body */} {/* arms */} {/* belly screen with the glowing prompt */} {/* head */} {/* folded button ears */} {/* forehead wrinkles */} {/* cheeks */} {/* black mask */} {/* eyes */} {awake ? ( <> ) : ( <> )} {/* nose, mouth, tongue */} {awake && } {!awake && ( z z )} ); } /** Mascot with a speech bubble: sleeps when nothing waits, perks up when agents ask. */ export function PugBanner({ count }: { count: number }) { const t = useT(); const awake = count > 0; return (
{awake ? ( <> {count === 1 ? t("Гав! Агент ждёт вашего ответа") : t("Гав! Агенты ждут вашего ответа")} {t.n(count, " — {n} вопрос ниже.", " — {n} вопроса ниже.", " — {n} вопросов ниже.")} ) : ( {t("Тихо… Агентам от вас ничего не нужно, мопс спит.")} )}
); }