Initial commit

This commit is contained in:
2026-03-05 16:46:38 +07:00
commit 112e8604e2
124 changed files with 14369 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import Link from "next/link"
import { Badge } from "@/components/ui/badge"
interface GenreBadgeProps {
slug: string
name: string
variant?: "default" | "link"
}
export function GenreBadge({ slug, name, variant = "default" }: GenreBadgeProps) {
if (variant === "link") {
return (
<Link href={`/the-loai/${slug}`}>
<Badge variant="secondary" className="cursor-pointer transition-colors hover:bg-primary hover:text-primary-foreground">
{name}
</Badge>
</Link>
)
}
return (
<Badge variant="secondary">
{name}
</Badge>
)
}