import { IonPage, IonContent, IonHeader, IonToolbar, IonFooter, IonImg, IonGrid, IonRow, IonCol, IonButtons, IonBackButton, useIonViewWillEnter, IonItem, IonIcon } from '@ionic/react'; import { useParams } from 'react-router'; import React, { useState } from 'react'; import { BioInfo, getMessage } from '../data/BioInfo'; import './Biography.css'; import EnciclopediaPR from '../assets/EnciclopediaPR.png'; import { clipboardOutline } from 'ionicons/icons'; const Biography: React.FC = () => { const [bioinfo, setMessage] = useState(); const params = useParams<{ id: string }>(); useIonViewWillEnter(() => { const msg = getMessage(parseInt(params.id, 10)); setMessage(msg); }); return ( {bioinfo ? ( <>

{bioinfo.title}

{bioinfo.tags}

{bioinfo.birth}

{bioinfo.place}

{bioinfo.death}

{bioinfo.continue}

For more information press here

Tomar quiz ) : (
Biography not found
)}
); }; export default Biography;