mattermost-mobile/share_extension/components/recent_channels/header.tsx
Elias Nahum 6eadc527bb
Gekidou Android share extension (#6803)
* Refactor app database queries to not require the app database as argument

* Android Share Extension and fix notifications prompt

* feedback review
2022-11-30 23:18:56 +02:00

45 lines
1.2 KiB
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {View} from 'react-native';
import FormattedText from '@components/formatted_text';
import {changeOpacity, makeStyleSheetFromTheme} from '@utils/theme';
import {typography} from '@utils/typography';
const getStyles = makeStyleSheetFromTheme((theme: Theme) => ({
container: {
paddingVertical: 8,
paddingTop: 12,
paddingLeft: 2,
flexDirection: 'row',
alignItems: 'flex-start',
backgroundColor: theme.centerChannelBg,
},
heading: {
color: changeOpacity(theme.centerChannelColor, 0.64),
textTransform: 'uppercase',
...typography('Heading', 75, 'SemiBold'),
},
}));
type Props = {
theme: Theme;
}
const RecentHeader = ({theme}: Props) => {
const styles = getStyles(theme);
return (
<View style={styles.container}>
<FormattedText
id='mobile.channel_list.recent'
defaultMessage='Recent'
style={styles.heading}
/>
</View>
);
};
export default RecentHeader;