import React from "react"; import { View, ViewProps, StyleProp, ViewStyle, Text } from "react-native"; import { withTheme } from "@draftbit/theme"; import type { ReadTheme } from "@draftbit/theme"; interface SectionHeaderProps extends Omit { style?: StyleProp; } const SectionHeader: React.FC> = ({ style, children, ...rest }) => ( {children} ); interface DefaultSectionHeaderProps { title: string; theme: ReadTheme; backgroundColor?: string; textColor?: string; } export const DefaultSectionHeader = withTheme( ({ title, theme, backgroundColor, textColor }: DefaultSectionHeaderProps) => { return ( {title} ); } ); export default SectionHeader;