import Styles from "@/constants/Styles"; import { useTheme } from "@/providers/ThemeProvider"; import { MaterialCommunityIcons } from "@expo/vector-icons"; import { View } from "react-native"; import Text from "./Text"; type Props = { text?: string title?: string } export default function SectionCancel({ text, title }: Props) { const { colors } = useTheme(); return ( {title ?? 'Kegiatan Dibatalkan'} {text && ( {text} )} ) }