2021-11-22 15:12:26 +05:00
|
|
|
import React from 'react';
|
2022-04-24 05:59:14 +05:00
|
|
|
import { useThemeStore } from '../../stores/use-theme-store';
|
2022-02-28 13:48:59 +05:00
|
|
|
import Paragraph from '../ui/typography/paragraph';
|
2021-11-22 15:12:26 +05:00
|
|
|
import { getStyle } from './functions';
|
|
|
|
|
|
2022-01-22 12:57:05 +05:00
|
|
|
export const Body = ({ text, style = {} }) => {
|
2022-02-28 23:25:18 +05:00
|
|
|
const colors = useThemeStore(state => state.colors);
|
2021-11-22 15:12:26 +05:00
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Paragraph
|
|
|
|
|
style={{
|
|
|
|
|
paddingHorizontal: 12,
|
|
|
|
|
...getStyle(style)
|
2022-01-22 12:57:05 +05:00
|
|
|
}}
|
|
|
|
|
>
|
2021-11-22 15:12:26 +05:00
|
|
|
{text}
|
|
|
|
|
</Paragraph>
|
|
|
|
|
);
|
2022-01-22 12:57:05 +05:00
|
|
|
};
|