From 82e03978b89938219958032efb1448cc76baa181 Mon Sep 17 00:00:00 2001 From: Saumit Date: Sat, 27 Sep 2025 02:14:26 +0530 Subject: Initial snapshot - OpenTelemetry demo 2.1.3 -f --- src/frontend/pages/cart/index.tsx | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/frontend/pages/cart/index.tsx (limited to 'src/frontend/pages/cart/index.tsx') diff --git a/src/frontend/pages/cart/index.tsx b/src/frontend/pages/cart/index.tsx new file mode 100644 index 0000000..efb01c9 --- /dev/null +++ b/src/frontend/pages/cart/index.tsx @@ -0,0 +1,39 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +import { NextPage } from 'next'; +import Head from 'next/head'; +import Footer from '../../components/Footer'; +import Layout from '../../components/Layout'; +import Recommendations from '../../components/Recommendations'; +import * as S from '../../styles/Cart.styled'; +import CartDetail from '../../components/Cart/CartDetail'; +import EmptyCart from '../../components/Cart/EmptyCart'; +import { useCart } from '../../providers/Cart.provider'; +import AdProvider from '../../providers/Ad.provider'; + +const Cart: NextPage = () => { + const { + cart: { items }, + } = useCart(); + + return ( + productId)} + contextKeys={[...new Set(items.flatMap(({ product }) => product.categories))]} + > + + Otel Demo - Cart + + + + {(!!items.length && ) || } + + +