import React from "react";
import { Box, Image, PseudoBox, Stack, Skeleton } from "@chakra-ui/core";
function ItemList({ items, wornItemIds, dispatchToOutfit }) {
return (
{items.map((item) => (
))}
);
}
function ItemListSkeleton({ count }) {
return (
{Array.from({ length: count }).map((_, i) => (
))}
);
}
function Item({ item, isWorn, dispatchToOutfit }) {
return (
dispatchToOutfit({
type: isWorn ? "unwearItem" : "wearItem",
itemId: item.id,
})
}
>
{item.name}
);
}
function ItemSkeleton() {
return (
);
}
function ItemThumbnail({ src, isWorn }) {
return (
);
}
function ItemName({ children, isWorn }) {
return (
{children}
);
}
export default ItemList;
export { ItemListSkeleton };