{"version":3,"file":"postNavigationBanner-De2jbfGj.js","sources":["../../../client/app/bundles/Shared/components/shared/postNavigationBanner.tsx"],"sourcesContent":["import * as React from 'react';\n\ninterface BannerProps {\n tagText?: string,\n primaryHeaderText: string,\n secondaryHeaderText?: string,\n bodyText: string|JSX.Element,\n closeAria?: string,\n closeIconSrc?: string,\n handleCloseCard?: () => void,\n icon?: {\n alt: string,\n src: string\n },\n buttons: {\n className?: string\n onClick?: () => void,\n href?: string,\n text: string,\n target?: string\n }[],\n bannerStyle?: string\n bannerColor?: string\n}\n\nexport const PostNavigationBanner = ({ tagText, primaryHeaderText, secondaryHeaderText, bodyText, icon, buttons, bannerStyle, bannerColor, closeIconSrc, handleCloseCard, closeAria }: BannerProps) => {\n const color = bannerColor ? bannerColor : 'green'\n const isPremium = bannerStyle && bannerStyle.includes('premium')\n const focusClass = bannerStyle && bannerStyle.includes('dark-mode') ? 'focus-on-dark' : 'focus-on-light'\n\n if(bannerStyle && bannerStyle.includes('minimal')) {\n return(\n
{tagText}
}\n{primaryHeaderText}
\n{bodyText}
\n{tagText}
}\n {secondaryHeaderText &&{secondaryHeaderText}
}\n{primaryHeaderText}
\n{bodyText}
\n