--- // This component is used by the command palette for rendering search results import Icon from './Icon.astro'; export interface Props { results: Array<{ id: string; title: string; description?: string; url: string; type: 'post' | 'page' | 'external'; }>; } const { results } = Astro.props; --- {results.length > 0 ? (
Results ({results.length})
{results.map((result, index) => (
{result.title}
{result.description && (
{result.description}
)}
{result.type === 'external' && ( )}
))}
) : (

No results found

Try a different search term

)}