import { useAppSelector } from '@akinon/next/redux/hooks'; import { useLocalization } from '@akinon/next/hooks'; import PluginModule, { Component } from '@akinon/next/components/plugin-module'; import { Price, Link } from '@theme/components'; import { partAttrs } from '@akinon/pz-theme/src/utils/part-styles'; import { Image } from '@akinon/next/components/image'; import { StoreCredits } from '@theme/views/checkout/steps/payment/options/store-credit'; import type { RootState } from '@theme/redux/store'; import type { SectionId } from './hooks/use-section-state'; interface OnePageSummaryProps { onEditSection: (section: SectionId) => void; showReview?: boolean; } const OnePageSummary = ({ onEditSection, showReview = true }: OnePageSummaryProps) => { const { t } = useLocalization(); const preOrder = useAppSelector( (state: RootState) => state.checkout.preOrder ); const { isMobileApp } = useAppSelector((state: RootState) => state.root); if (!preOrder?.basket) return null; const itemCount = preOrder.basket.basketitem_set.length; return (