import Styles from "@/constants/Styles"; import { Ionicons, MaterialCommunityIcons } from "@expo/vector-icons"; import { Pressable, View } from "react-native"; import Text from "../Text"; type Props = { title: string category: 'folder' | 'folder-shared' | 'file' | 'file-shared' dateTime: string checked?: boolean onChecked?: () => void onPress?: () => void canChecked?: boolean } export default function ItemFile({ category, checked, dateTime, title, onChecked, onPress, canChecked }: Props) { return ( { category == 'folder-shared' ? <> : category == 'file-shared' ? <> : category == 'folder' ? : } {title} {dateTime} { !canChecked ? <> : { checked ? : } } ) }