"use client"
import { use, useState, useMemo } from "react"
import Link from "next/link"
import { ChevronLeft } from "lucide-react"
import { getGenreBySlug, getNovelsByGenre } from "@/lib/data"
import { NovelCard } from "@/components/novel-card"
import { Button } from "@/components/ui/button"
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
import { notFound } from "next/navigation"
export default function GenreDetailPage({ params }: { params: Promise<{ slug: string }> }) {
const { slug } = use(params)
const genre = getGenreBySlug(slug)
if (!genre) {
notFound()
}
return
{genreDescription}
{sortedNovels.length} truyện
Chưa có truyện nào
Thể loại này chưa có truyện, hãy quay lại sau.