add next app

This commit is contained in:
2026-02-18 03:22:17 +03:00
parent d16b38e6e1
commit e62e7bf3a8
26 changed files with 4752 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
"use client";
import { useUserWishlistsQuery } from "@/api/wishlists";
import Link from "next/link";
export const UserWishlists = () => {
const { data } = useUserWishlistsQuery();
return (
<div>
<h2 className="text-xl font-semibold">Your wishlists</h2>
<div className="flex flex-col gap-2 mt-2">
{data?.map((wishlist) => (
<div key={wishlist.uuid}>
<Link href={`/wishlists/${wishlist.uuid}`}>
<span>{wishlist.name}</span>
</Link>
<p>{wishlist.description}</p>
</div>
))}
</div>
</div>
);
};