import React, { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { StyleProp, Text, TextStyle, View, ViewStyle } from 'react-native'; import { batch, useDispatch } from 'react-redux'; import { hideSheet } from '../../../../base/dialog/actions'; import BottomSheet from '../../../../base/dialog/components/native/BottomSheet'; import Button from '../../../../base/ui/components/native/Button'; import { BUTTON_TYPES } from '../../../../base/ui/constants.native'; import { highlightMeetingMoment } from '../../../actions.any'; import styles from '../styles.native'; const HighlightDialog = () => { const dispatch = useDispatch(); const { t } = useTranslation(); const closeDialog = useCallback(() => dispatch(hideSheet()), [ dispatch ]); const highlightMoment = useCallback(() => { batch(() => { dispatch(highlightMeetingMoment()); dispatch(hideSheet()); }); }, [ dispatch ]); return ( }> }> { `${t('recording.highlightMoment')}?` } }> { t('recording.highlightMomentSucessDescription') } } >