// Regression fixture: reuse each badge while changing from long to short numbers. import { useState } from 'react'; import { createRoot } from 'react-dom/client'; import type { CSSProperties } from 'react'; import '@fontsource-variable/manrope'; import '../src/styles.css'; import { RouteBadge } from '../src/RouteBadge'; function Preview() { const [short, setShort] = useState(false); const numbers = short ? ['2', '6', '11'] : ['21тк', '16тк', '11']; return

Смена номеров

Маршруты остановки

{numbers.map((number, index) =>

{['Калинина — Автовокзал', 'Гвардеец — Автовокзал', 'Тросницкая — Автовокзал'][index]}

Автобус
)}
; } createRoot(document.getElementById('root')!).render();