1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00
joplin/packages/app-mobile/components/screens/ConfigScreen/plugins/SectionLabel.tsx

25 lines
460 B
TypeScript
Raw Normal View History

import * as React from 'react';
import { ViewStyle } from 'react-native';
import { Text } from 'react-native-paper';
interface Props {
children: React.ReactNode;
visible: boolean;
}
const style: ViewStyle = {
margin: 12,
marginTop: 17,
marginBottom: 4,
};
const SectionLabel: React.FC<Props> = props => {
if (!props.visible) return null;
return <Text style={style} variant='labelLarge'>
{props.children}
</Text>;
};
export default SectionLabel;