/* * Wire * Copyright (C) 2024 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 {amplify} from 'amplify'; import {Button, ButtonVariant} from '@wireapp/react-ui-kit'; import {WebAppEvents} from '@wireapp/webapp-events'; import {Config} from 'src/script/Config'; import {EventName} from 'src/script/tracking/EventName'; import {Segmentation} from 'src/script/tracking/Segmentation'; import {t} from 'Util/LocalizerUtil'; import {safeWindowOpen} from 'Util/SanitizationUtil'; import {StepProps} from './StepProps'; import {listCss, modalButtonsCss, successStepSubHeaderCss} from './TeamCreationSteps.styles'; import {buttonCss} from '../TeamCreation.styles'; export const Success = ({onSuccess, teamName, userName}: StepProps) => { const handleOpenTeamsClick = () => { safeWindowOpen(Config.getConfig().URL.TEAMS_BASE); amplify.publish(WebAppEvents.ANALYTICS.EVENT, EventName.USER.PERSONAL_TEAM_CREATION.FLOW_COMPLETED, { step: Segmentation.TEAM_CREATION_STEP.MODAL_OPEN_TM_CLICKED, }); onSuccess(); }; const successHandler = () => { amplify.publish(WebAppEvents.ANALYTICS.EVENT, EventName.USER.PERSONAL_TEAM_CREATION.FLOW_COMPLETED, { step: Segmentation.TEAM_CREATION_STEP.MODAL_BACK_TO_WIRE_CLICKED, }); onSuccess(); }; return ( <>

{t('teamCreationSuccessTitle', {name: userName})}

{t('teamCreationSuccessSubTitle', {teamName})}

{t('teamCreationSuccessListTitle')}

); };