sendou.ink/app/features/tier-list-maker/components/ItemPool.tsx
Kalle 187e1aa105
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
Tier list maker feature (#2634)
2025-11-16 16:30:24 +02:00

20 lines
527 B
TypeScript

import { useDroppable } from "@dnd-kit/core";
import { useTierListState } from "../contexts/TierListContext";
import { DraggableItem } from "./DraggableItem";
import styles from "./ItemPool.module.css";
export function ItemPool() {
const { availableItems } = useTierListState();
const { setNodeRef } = useDroppable({
id: "item-pool",
});
return (
<div ref={setNodeRef} className={styles.pool}>
{availableItems.map((item) => (
<DraggableItem key={`${item.type}:${item.id}`} item={item} />
))}
</div>
);
}