import Area from '@components/common/Area.js'; import { Button } from '@components/common/ui/Button.js'; import { CartTotalSummary } from '@components/frontStore/cart/CartTotalSummary.js'; import { _ } from '@evershop/evershop/lib/locale/translate/_'; import React from 'react'; /** * Cart page block: the order summary card (totals, checkout button, continue * link) with the `shoppingCartBeforeSummary`, `shoppingCartBeforeCheckoutButton` * and `shoppingCartAfterSummary` Areas. A page component rather than markup * inside the `ShoppingCart` shell so a theme can move it from `layouts.json`. * Fetches the checkout URL with its own query. */ export default function CartSummary({ checkoutUrl }: { checkoutUrl: string }): React.ReactElement { return ( <>
> ); } export const layout = { areaId: 'shoppingCartSummary', sortOrder: 10 }; export const query = ` query Query { checkoutUrl: url(routeId: "checkout") } `;