import type { Collection } from './types' export const basic: Collection = { ids: ['1', '2', '3', '4', '5'], entities: new Map( Object.entries({ 1: { id: '1', title: 'Zeta', subtitle: 'My 100 days' }, 2: { id: '2', title: 'Gamma', subtitle: 'My 99 days' }, 3: { id: '3', title: 'Alpha', subtitle: 'Another book' }, 4: { id: '4', title: 'Beta', subtitle: 'awesome book' }, 5: { id: '5', title: 'Kappa', subtitle: '20,000 Leagues' }, }) ), meta: new Map(), } export const expandedTree = new Set(['1']) export const tree: Collection = { ids: ['1', '3'], entities: new Map( Object.entries({ 1: { id: '1', title: 'Zeta', meta: { type: 'tree', children: ['2', '5', '6'], }, }, 2: { id: '2', title: 'Gamma' }, 3: { id: '3', title: 'Alpha', meta: { type: 'tree', children: ['4'] }, }, 4: { id: '4', title: 'Beta' }, 5: { id: '5', title: 'Kappa' }, 6: { id: '6', title: 'Delta' }, }) ), meta: new Map( Object.entries({ 1: { type: 'tree', children: ['2', '5', '6'], expanded: true, }, 3: { type: 'tree', children: ['4'], expanded: false }, }) ), }