diff --git a/src/app/(main)/berita/search/page.tsx b/src/app/(main)/berita/search/page.tsx index 9cc8740c..9217141a 100644 --- a/src/app/(main)/berita/search/page.tsx +++ b/src/app/(main)/berita/search/page.tsx @@ -1,4 +1,4 @@ -import { NewsFigure } from "@/app/_components/global/NewsFigure"; +import { NewsSearchFigure } from "@/app/_components/global/NewsFigure"; import { H2 } from "@/app/_components/global/Text"; import { SmallSectionWrapper } from "@/app/_components/global/Wrapper"; import { PostWithTagsAndUser } from "@/types/entityRelations"; @@ -6,6 +6,7 @@ import { findPosts } from "@/utils/database/post.query"; import GoBack from "../[slug]/_components/BackButton"; import { SearchBar } from "../_components/SearchBar"; +import { redirect } from "next/navigation"; export default async function Search({ searchParams, @@ -29,10 +30,12 @@ export default async function Search({ Menampilkan hasil pencarian untuk " {searchParams.q?.toString() ?? ""}" -