{`Found ${results.length} Results for "${query}"`}
-
{results.map((result) => (
-
{result.subtitle}
{result.title}
))}
import { Breadcrumb } from '@/components/Breadcrumb'
import { MetaHead } from '@/components/MetaHead'
import { Sidebar } from '@/components/Sidebar'
import { SidebarContentList } from '@/types/content-types'
import { SearchResult } from '@/types/search-types'
import { getSidebarContentList } from '@/utils/getSidebarContentList'
import { GetServerSideProps } from 'next'
import { useTheme } from 'next-themes'
import Link from 'next/link'
type Props = {
sidebar: SidebarContentList
results: SearchResult[]
query: string
}
export default function SectionListPage({ sidebar, query, results }: Props) {
const theme = useTheme()
return (
<>