First commit of the new app
This commit is contained in:
22
assets/components/reserva/Section.tsx
Normal file
22
assets/components/reserva/Section.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import styles from '@/styles/screens/reserva/detail.styles';
|
||||
import { ReactNode } from 'react';
|
||||
import { Text, View } from 'react-native';
|
||||
import { DashedDivider } from './DashedDivider';
|
||||
|
||||
type Props = {
|
||||
title?: string;
|
||||
children: ReactNode;
|
||||
};
|
||||
|
||||
export function Section({ title, children }: Props) {
|
||||
return (
|
||||
<View style={styles.summaryCard}>
|
||||
{!!title && (
|
||||
<>
|
||||
<Text style={styles.sectionTitle}>{title}</Text>
|
||||
</>
|
||||
)}
|
||||
{children}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user