UNPKG

@shopgate/engage

Version:
20 lines (19 loc) 722 B
import React, { useContext, Fragment } from 'react'; import { StoreContext } from "./Store.context"; import { StoreHeader } from "./StoreHeader"; import { StoreDetails } from "./StoreDetails"; import { StoreSelectLocationButton } from "./StoreSelectLocationButton"; /** * Renders the store's card. * @returns {JSX} */ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; export function StoreCard() { const store = useContext(StoreContext); if (!store || !store.address) { return null; } return /*#__PURE__*/_jsxs(_Fragment, { children: [/*#__PURE__*/_jsx(StoreHeader, {}), /*#__PURE__*/_jsx(StoreDetails, {}), /*#__PURE__*/_jsx(StoreSelectLocationButton, {})] }); }