import type { ViewMode } from '../types'; interface Props { view: ViewMode; eventName: string; photoCount: number; selectedCount: number; cloudLabel: string; cloudOn: boolean; /** Desktop mode has no account, so the team-server button is not shown. */ localMode?: boolean; onViewChange: (view: ViewMode) => void; onImport: () => void; onExport: () => void; onCloud: () => void; onHelp: () => void; onAbout: () => void; onSearch: () => void; onCatalog: () => void; canShare: boolean; onShare: () => void; } export default function TopBar({ view, eventName, photoCount, selectedCount, cloudLabel, cloudOn, localMode = false, onViewChange, onImport, onExport, onCloud, onHelp, onAbout, onSearch, onCatalog, canShare, onShare, }: Props) { return (
{eventName} {' '} · {photoCount} photo{photoCount === 1 ? '' : 's'} {selectedCount > 1 ? ` · ${selectedCount} selected` : ''}
{!localMode && ( )} {canShare && ( )} Guide
); }