import React, { Suspense } from 'react' import SearchCard from '../components/SearchCard' interface SearchPageProps { params: { category: string } searchParams: { [key: string]: string | string[] | undefined } } // получаем все предложения по выбранному owner_type async function fetchSearch(category: string, query: string = '') { // get search api(owner_type) return [] } export default async function SearchPage(props: SearchPageProps) { const params = await props.params const { category } = params const initialData = await fetchSearch(category) return (
Результат поиска {index + 1}