@@ -2,23 +2,43 @@ import { Box } from '@mui/material';
22import React , { ReactNode } from 'react' ;
33import AnalyticsConsent from 'src/components/Analytics/AnalyticsConsent' ;
44import { FeedbackModal } from 'src/layouts/FeedbackDialog' ;
5+ import { useRootStore } from 'src/store/root' ;
56import { FORK_ENABLED } from 'src/utils/marketsAndNetworksConfig' ;
67
78import { AppFooter } from './AppFooter' ;
89import { AppHeader } from './AppHeader' ;
9- // import TopBarNotify from './TopBarNotify';
10+ import TopBarNotify from './TopBarNotify' ;
1011
12+ const SwitchIcon = ( ) => (
13+ < svg
14+ xmlns = "http://www.w3.org/2000/svg"
15+ fill = "none"
16+ viewBox = "0 0 24 24"
17+ strokeWidth = "1.5"
18+ stroke = "currentColor"
19+ style = { { marginLeft : '8px' , width : '24px' , height : '24px' } }
20+ >
21+ < path
22+ strokeLinecap = "round"
23+ strokeLinejoin = "round"
24+ d = "M7.5 21L3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"
25+ />
26+ </ svg >
27+ ) ;
1128export function MainLayout ( { children } : { children : ReactNode } ) {
12- // const APP_BANNER_VERSION = '5 .0.0';
13-
29+ const APP_BANNER_VERSION = '6 .0.0' ;
30+ const currentMarket = useRootStore ( ( state ) => state . currentMarket ) ;
1431 return (
1532 < >
16- { /* <TopBarNotify
17- learnMoreLink="https://oh7vm38ynd2.typeform.com/to/Fnw3rMyw"
18- notifyText="Looking to provide product feedback? We'd love to hear from you! 👉"
19- bannerVersion={APP_BANNER_VERSION}
20- buttonText="Share feedback"
21- /> */ }
33+ { currentMarket === 'proto_base_v3' && (
34+ < TopBarNotify
35+ // learnMoreLink="https://oh7vm38ynd2.typeform.com/to/Fnw3rMyw"
36+ notifyText = "Debt swaps are now live on Base!"
37+ bannerVersion = { APP_BANNER_VERSION }
38+ customIcon = { < SwitchIcon /> }
39+ />
40+ ) }
41+
2242 < AppHeader />
2343 < Box component = "main" sx = { { display : 'flex' , flexDirection : 'column' , flex : 1 } } >
2444 { children }
0 commit comments