Files
notesnook/apps/mobile/src/components/Announcements/description.js

22 lines
492 B
JavaScript
Raw Normal View History

2021-11-22 15:12:26 +05:00
import React from 'react';
import { useTracked } from '../../provider';
import { SIZE } from '../../utils/SizeUtils';
import Paragraph from '../Typography/Paragraph';
import { getStyle } from './functions';
export const Description = ({text, style = {}}) => {
const [state] = useTracked();
const colors = state.colors;
return (
<Paragraph
size={SIZE.md}
style={{
marginHorizontal: 12,
...getStyle(style)
}}>
{text}
</Paragraph>
);
};