@oxyhq/services
Version:
31 lines (30 loc) • 912 B
JavaScript
;
import { Text, StyleSheet } from 'react-native';
import { fontFamilies } from "../styles/fonts.js";
import { useColorScheme } from "../hooks/useColorScheme.js";
import { normalizeColorScheme } from "../utils/themeUtils.js";
import { useThemeStyles } from "../hooks/useThemeStyles.js";
import { jsx as _jsx } from "react/jsx-runtime";
const SectionTitle = ({
title,
theme,
style
}) => {
const colorScheme = normalizeColorScheme(useColorScheme(), theme);
const themeStyles = useThemeStyles(theme || colorScheme, colorScheme);
return /*#__PURE__*/_jsx(Text, {
style: [styles.sectionTitle, {
color: themeStyles.textColor
}, style],
children: title
});
};
const styles = StyleSheet.create({
sectionTitle: {
fontSize: 16,
fontWeight: '600',
fontFamily: fontFamilies.interSemiBold
}
});
export default SectionTitle;
//# sourceMappingURL=SectionTitle.js.map