search filter component

This commit is contained in:
2025-05-27 14:02:50 +03:00
parent 7915221fc4
commit c897d25a7d
5 changed files with 126 additions and 131 deletions

View File

@@ -3,6 +3,7 @@ import type { Metadata } from 'next'
import SearchCard from '../components/SearchCard'
import { SearchCardProps, SearchPageProps } from '@/app/types'
import { fetchRoutes } from '@/lib/search/fetchRoutes'
import SearchFilters from '../components/SearchFilters'
export async function generateMetadata(): Promise<Metadata> {
return {
@@ -57,7 +58,7 @@ export default async function SearchPage(props: SearchPageProps) {
<h1 className="mb-4 text-2xl font-bold">
{params.category === 'mover' ? 'Поиск перевозчика' : 'Поиск посылки'}
</h1>
<SearchFilters />
<Suspense fallback={<div>Загрузка результатов...</div>}>
<div className="space-y-4">
{results.length > 0 ? (