-
+
{book.title}
+
{book.contents}
@@ -59,6 +60,7 @@ export default function SearchResult({
작가
{book.authors}
+
{book.translators && book.translators.length > 0 ? (
번역
@@ -78,12 +80,14 @@ export default function SearchResult({
-
-
ISBN-10
-
- {book.isbn.split(" ")[0]}
-
-
+ {book.isbn.split(" ")[0] && (
+
+
ISBN-10
+
+ {book.isbn.split(" ")[0]}
+
+
+ )}
ISBN-13
diff --git a/src/app/search/page.tsx b/src/app/search/page.tsx
index 8a5752c..1e9f5c5 100644
--- a/src/app/search/page.tsx
+++ b/src/app/search/page.tsx
@@ -1,5 +1,4 @@
import { BookResponse } from "@/types/common";
-import SearchBar from "../components/SearchBar";
import { getBookSearch } from "@/libs/apis/searchApi";
import SearchResultContainer from "./_components/container/SearchResultContainer";
@@ -18,9 +17,7 @@ export default async function Search({ searchParams }: SearchProps) {
const searchData: BookResponse = await getBookSearch(query, page, 15, sort);
return (
-
-
-
+
void;
- setCurrentPage: (page: number) => void;
setOpenDropdownId: (id: string | null) => void;
resetSearchState: () => void;
@@ -24,13 +22,9 @@ export const useSearchStore = create()(
openDropdownId: null,
setOpenDropdownId: (id) => set({ openDropdownId: id }),
- currentPage: 1,
- setCurrentPage: (page) => set({ currentPage: page }),
-
resetSearchState: () =>
set({
query: "",
- currentPage: 1,
openDropdownId: null,
}),
}),