anix/feat: add new stats

anix/fix: search links from release page
This commit is contained in:
Kentai Radiquum 2025-08-25 01:48:56 +05:00
parent b93aeeed04
commit c636c843ed
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
3 changed files with 102 additions and 44 deletions

View file

@ -1,19 +1,11 @@
import Link from "next/link";
// const searchBy = {
// title: 0,
// studio: 1,
// director: 2,
// author: 3,
// genre: 4
// }
// TODO: сделать какую-нибудь анимацию на ссылке при наведении и фокусе
export const ReleaseInfoSearchLink = (props: { title: string, searchBy: string | number | null }) => {
export const ReleaseInfoSearchLink = (props: { title: string, searchBy: string }) => {
return (
<Link
className="underline"
href={`/search?q=${props.title}&searchBy=${props.searchBy}`}
className="text-gray-700 transition-colors duration-300 hover:text-black dark:text-gray-300 hover:dark:text-white"
href={`/search?query=${props.title}&params={"where"%3A"releases"%2C"searchBy"%3A"${props.searchBy}"}`}
>
{props.title}
</Link>