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