import { ChevronRight, Settings } from 'lucide-react' import { servers } from '../data/servers' import { linkedNickname } from '../state/account' import type { ProfileState } from '../state/profiles' import type { ShaCraftAccount, Server } from '../types/launcher' interface LibraryProps { selected: Server profiles: Record account: ShaCraftAccount | null | undefined locked: boolean native: boolean onSelect: (server: Server) => void onSettings: () => void } export function Library({ selected, profiles, account, locked, native, onSelect, onSettings }: LibraryProps) { const nickname = linkedNickname(account) const name = account === undefined ? 'Проверяем…' : account === null ? 'Не авторизован' : nickname ?? account.username return ( <> ) }