import * as React from 'react'; import { StyleSheet, StyleProp, TextStyle } from 'react-native'; import Title from '../Typography/Title'; import { withTheme } from '../../core/theming'; import type { Theme } from '../../types'; export type Props = React.ComponentPropsWithRef & { children: React.ReactNode; style?: StyleProp; theme: Theme; }; const DialogTitle = ({ children, theme, style, ...rest }: Props) => { const TextComponent = Title; const textColor = theme.colors?.text; return ( {children} ); }; DialogTitle.displayName = 'Dialog.Title'; const styles = StyleSheet.create({ text: { marginTop: 22, marginBottom: 18, marginHorizontal: 24, }, }); export default withTheme(DialogTitle); export { DialogTitle };