import { ColorsStatus } from "@/constants/ColorsStatus"; import Styles from "@/constants/Styles"; import { useTheme } from "@/providers/ThemeProvider"; import { ImageBackground, Pressable, View } from "react-native"; import Text from "./Text"; import bgDark from '@/assets/images/bgproject-dark.png'; import bgLight from '@/assets/images/bgproject-light.png'; type Props = { content: 'carousel' | 'page'; children: React.ReactNode; title: string headerColor: 'primary' | 'warning' onPress?: () => void contentPosition?: 'top' | 'center' titleTail?: number height?: number }; export default function PaperGridContent({ content, children, title, headerColor, onPress, contentPosition, titleTail, height }: Props) { const { colors, activeTheme } = useTheme(); const bgSource = activeTheme === 'light' ? bgLight : bgDark; return ( { headerColor == 'warning' ? ( {title} ) : ( {title.charAt(0).toUpperCase() + title.slice(1)} ) } {children} ) }