(entry: CommandPaletteRecentEntry)
| 615 | }) |
| 616 | |
| 617 | function getRecentResult(entry: CommandPaletteRecentEntry) { |
| 618 | return { |
| 619 | id: `recent:${entry.id}`, |
| 620 | type: 'recent', |
| 621 | title: entry.title, |
| 622 | subtitle: entry.subtitle, |
| 623 | icon: getSpaceIcon(entry.spaceId), |
| 624 | recent: entry, |
| 625 | } satisfies CommandPaletteResult |
| 626 | } |
| 627 | |
| 628 | const recentResults = computed<CommandPaletteResult[]>(() => |
| 629 | recentEntries.value.slice(0, ROOT_RECENT_LIMIT).map(getRecentResult), |
nothing calls this directly
no test coverage detected