26 lines
594 B
TypeScript
26 lines
594 B
TypeScript
import React from 'react';
|
|
import { Text, View } from 'react-native';
|
|
import { Row } from 'react-native-easy-grid';
|
|
|
|
import styles from './styles';
|
|
import { themes } from '../../../constants/colors';
|
|
import { useTheme } from '../../../theme';
|
|
|
|
interface IPasscodeTitle {
|
|
text: string;
|
|
}
|
|
|
|
const Title = React.memo(({ text }: IPasscodeTitle) => {
|
|
const { theme } = useTheme();
|
|
|
|
return (
|
|
<Row style={styles.row}>
|
|
<View style={styles.titleView}>
|
|
<Text style={[styles.textTitle, { color: themes[theme].passcodePrimary }]}>{text}</Text>
|
|
</View>
|
|
</Row>
|
|
);
|
|
});
|
|
|
|
export default Title;
|