"use strict";

import { Text, StyleSheet } from 'react-native';
import { fontFamilies } from '../styles/fonts';
import { useColorScheme } from '../hooks/use-color-scheme';
import { normalizeColorScheme } from '../utils/themeUtils';
import { useThemeStyles } from '../hooks/useThemeStyles';
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.phuduSemiBold,
    marginBottom: 12
  }
});
export default SectionTitle;
//# sourceMappingURL=SectionTitle.js.map