/* * Wire * Copyright (C) 2018 Wire Swiss GmbH * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see http://www.gnu.org/licenses/. * */ import React from 'react'; import {FormattedMessage} from 'react-intl'; import {CloseIcon, Content, Footer, Header, Link, Small} from '@wireapp/react-ui-kit'; import {LogoFullIcon} from 'Components/Icon'; import {t} from 'Util/LocalizerUtil'; import {Config} from '../../Config'; import {EXTERNAL_ROUTE} from '../externalRoute'; export interface Props extends React.HTMLAttributes { children: React.ReactNode; onCookiePolicyBannerClose?: (event: React.MouseEvent) => void; showCookiePolicyBanner?: boolean; } const WirelessContainer: React.FC = ({showCookiePolicyBanner, onCookiePolicyBannerClose, children}) => { return (
{showCookiePolicyBanner && (
) => onCookiePolicyBannerClose?.(event)} href={Config.getConfig().URL.PRIVACY_POLICY} style={{fontSize: '1rem'}} target="_blank" textTransform="none" bold={false} data-uie-name="go-privacy" > , strong: (...chunks: any[]) => {chunks}, }} />
)}
{children}
); }; export {WirelessContainer};