mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
23 lines
416 B
TypeScript
23 lines
416 B
TypeScript
import * as React from 'react';
|
|
import { ViewStyle } from 'react-native';
|
|
import { Banner } from 'react-native-paper';
|
|
|
|
interface Props {
|
|
content: string;
|
|
}
|
|
|
|
const style: ViewStyle = { marginBottom: 10 };
|
|
|
|
const SectionDescription: React.FC<Props> = props => {
|
|
return (
|
|
<Banner
|
|
visible={true}
|
|
icon='information'
|
|
style={style}
|
|
>
|
|
{props.content}
|
|
</Banner>
|
|
);
|
|
};
|
|
export default SectionDescription;
|