-
Notifications
You must be signed in to change notification settings - Fork 3k
/
index.tsx
29 lines (25 loc) · 1.03 KB
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import React from 'react';
import * as Expensicons from '@components/Icon/Expensicons';
import MenuItem from '@components/MenuItem';
import useLocalize from '@hooks/useLocalize';
import useTheme from '@hooks/useTheme';
import useThemeStyles from '@hooks/useThemeStyles';
import Navigation from '@libs/Navigation/Navigation';
import ROUTES from '@src/ROUTES';
function RequestEarlyCancellationMenuItem() {
const {translate} = useLocalize();
const theme = useTheme();
const styles = useThemeStyles();
return (
<MenuItem
title={translate('subscription.requestEarlyCancellation.title')}
icon={Expensicons.CalendarSolid}
iconFill={theme.success}
shouldShowRightIcon
wrapperStyle={styles.sectionMenuItemTopDescription}
onPress={() => Navigation.navigate(ROUTES.SETTINGS_SUBSCRIPTION_REQUEST_EARLY_CANCELLATION)}
/>
);
}
RequestEarlyCancellationMenuItem.displayName = 'RequestEarlyCancellationMenuItem';
export default RequestEarlyCancellationMenuItem;