Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git] / packages / components / containers / offers / operations / blackFridayInbox2024FreeYearly / Layout.tsx
blobbc9abeaf29e6cc50833bed33285143d124aa8855
1 import BlackFridayFooter from '../../components/blackFriday/BlackFridayFooter';
2 import DealsBF2024 from '../../components/blackFriday/DealsBF2024';
3 import OfferLayoutBF from '../../components/blackFriday/OfferLayoutBF2024';
4 import OfferFooter from '../../components/shared/OfferFooter';
5 import OfferLoader from '../../components/shared/OfferLoader';
6 import hasOffer from '../../helpers/hasOffer';
7 import type { OfferLayoutProps } from '../../interface';
9 const Layout = (props: OfferLayoutProps) => {
10     return hasOffer(props) ? (
11         <OfferLayoutBF {...props}>
12             <DealsBF2024 {...props} />
14             <OfferFooter {...props}>
15                 <BlackFridayFooter {...props} />
16             </OfferFooter>
17         </OfferLayoutBF>
18     ) : (
19         <OfferLoader />
20     );
23 export default Layout;