el.xwx.moe/pages/collections/index.tsx

21 lines
505 B
TypeScript
Raw Normal View History

import { useSession } from "next-auth/react";
2023-03-22 18:11:54 -05:00
import useCollectionStore from "@/store/collections";
import CollectionCard from "@/components/CollectionCard";
export default function () {
2023-03-22 18:11:54 -05:00
const { collections } = useCollectionStore();
const { data: session, status } = useSession();
const user = session?.user;
return (
// ml-80
<div className="flex flex-wrap p-5">
{collections.map((e, i) => {
return <CollectionCard key={i} collection={e} />;
})}
</div>
);
}