import React, { useEffect, useState } from 'react'; const ProcessCard = ({ numeric, id, title, subtitle, text }) => { const [paragraphs, setParagraphs] = useState([]); const left = (id - 1) % 2 === 0; useEffect(() => { setParagraphs(text); }, [text]); return (
{numeric && (
{id}
)}

{title}

{subtitle}

{paragraphs && paragraphs.map((item, index) => (

{item.paragraph}

))}
); }; export default ProcessCard;