import React from "react"; import { ClassNames } from "@emotion/react"; import { Box, Flex, IconButton, Skeleton, Tooltip, useColorModeValue, useTheme, } from "@chakra-ui/react"; import { EditIcon, DeleteIcon, InfoIcon } from "@chakra-ui/icons"; import { Link } from "react-router-dom"; import { loadable } from "../util"; import { ItemCardContent, ItemBadgeList, ItemKindBadge, MaybeAnimatedBadge, YouOwnThisBadge, YouWantThisBadge, getZoneBadges, } from "../components/ItemCard"; import SupportOnly from "./support/SupportOnly"; import useSupport from "./support/useSupport"; const LoadableItemPageDrawer = loadable(() => import("../ItemPageDrawer")); const LoadableItemSupportDrawer = loadable(() => import("./support/ItemSupportDrawer") ); /** * Item show a basic summary of an item, in the context of the current outfit! * * It also responds to the focus state of an `input` as its previous sibling. * This will be an invisible radio/checkbox that controls the actual wear * state. * * In fact, this component can't trigger wear or unwear events! When you click * it in the app, you're actually clicking a