Imports tradein-mvp/frontend (38 components) to a claude.ai/design design-system project. Synth-entry build (Next.js app, no dist): - overrides/source-kit.mjs: process.env shim for browser IIFE - preview-provider.tsx: seeded TanStack Query provider (mirrors the repo's offline ui-preview client) so fetch-coupled + auth-gated cards render - previews/*.tsx: authored preview compositions (real fixture data) - conventions.md: README header for the design agent - config.json + NOTES.md: reproducible re-sync inputs
10 lines
491 B
TypeScript
10 lines
491 B
TypeScript
import { UserMenu } from 'tradein-mvp-frontend';
|
|
|
|
/** Аватар-кнопка личного кабинета в Topbar. Читает useMe() — без данных /me
|
|
* (isLoading || error || !data) компонент намеренно возвращает null.
|
|
* Fetch-coupled: в превью без сети рендерит пусто. */
|
|
export const Default = () => (
|
|
<div style={{ display: 'flex', justifyContent: 'flex-end', padding: 12 }}>
|
|
<UserMenu />
|
|
</div>
|
|
);
|