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

21 lines
408 B
JavaScript
Raw Normal View History

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