import BodyCard from "../../../components/organisms/body-card" import Button from "../../../components/fundamentals/button" import Fade from "../../../components/atoms/fade-wrapper" import InventoryPageTableHeader from "../header" import LocationCard from "./components/location-card" import NewLocation from "./new" import PlusIcon from "../../../components/fundamentals/icons/plus-icon" import Spinner from "../../../components/atoms/spinner" import { useAdminStockLocations } from "medusa-react" import useToggleState from "../../../hooks/use-toggle-state" const Locations = () => { const { state: createLocationState, close: closeLocationCreate, open: openLocationCreate, } = useToggleState() const Actions = ( ) const { stock_locations, isLoading } = useAdminStockLocations({ expand: "address,sales_channels", }) return ( <>