import {React, useState} from 'react'; import {StyleSheet, Text, TextInput, View, Image, Pressable} from 'react-native'; import ValidateButton from './ValidateButton'; import ListWithoutSelect from './ListWithoutSelect'; type ProfileProps = { name: string avatar: string diets: list allergies: list onDeleteProfile: () => void } export default function ProfileDetails(props: ProfileProps) { const [display, setDisplay] = useState("none") const changeListVisibility = () => { if (display == "none"){ setDisplay("flex") } else{ setDisplay("none") } }; return ( {props.name} Filters 3 selected ); } const styles = StyleSheet.create({ background: { //maxWidth: 370, flexDirection: 'column', alignItems: 'center', justifyContent: 'center', borderRadius: 15, backgroundColor: '#F2F0E4', padding: 10, marginHorizontal: 10, }, pseudoBar: { flexDirection: "row", alignItems: "center", justifyContent: "center", flex: 0.7, width: 330, marginBottom: 10, }, avatar: { padding: 20, resizeMode: 'contain', borderWidth: 2, borderColor: "#ACA279", borderRadius: 45, }, text: { fontSize: 20, color: '#ACA279', alignItems: 'center', justifyContent: 'left', flex: 0.8, marginLeft: 20, padding: 5, }, modify: { height: 20, width: 20, tintColor: "#ACA279", resizeMode: 'contain', flex: 0.05, marginLeft: 15, }, delete: { height: 20, width: 20, tintColor: "#ACA279", resizeMode: 'contain', flex: 0.05, }, filterBar: { flexDirection: "row", width: 300, paddingTop: 10, paddingBottom: 5, alignItems: "flex-end", justifyContent: "center", flex: 0.2, }, filters: { flex: 0.5, fontSize: 20, color: '#ACA279', flex: 1, padding: 5, paddingLeft: 0, paddingBottom: 0, }, nbSelected: { fontSize: 11, flex: 1, color: "#3F3C42", textAlign: "right", }, arrow: { height: 20, width: 20, resizeMode: 'contain', tintColor: "#3F3C42", flex: 0.1, }, });