mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
22 lines
492 B
JavaScript
22 lines
492 B
JavaScript
|
|
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>
|
||
|
|
);
|
||
|
|
};
|