import React, { useState, useEffect } from "react"; import { HiOutlineUserGroup } from "react-icons/hi"; import { TbReportSearch } from "react-icons/tb"; import { useTranslation } from "react-i18next"; import userBehavior from "../../../assets/images/icon-user-behavior.png"; import userInformation from "../../../assets/images/image20.png"; import userInteraction from "../../../assets/images/image21.png"; const listProblems = [ { title: "User behavior​", content: "Satisfying the habit of searching for any unusual signs related to the user's health​", }, { title: "Information​", content: "Providing accurate and easy-to-understand information for users​​", }, { icon: "HiOutlineUserGroup", title: "Interaction​", content: "Providing a good user experience with high interactivity, encourage users to provide more valuable information about their illness​​", }, ]; const ProblemsSection = () => { const { t } = useTranslation("problemsSectionHealthCare"); const [problemsSectionData, setProblemsSectionData] = useState([]); useEffect(() => { setProblemsSectionData(t("data", { returnObjects: true })); }, [t]); return (

{t("title")}

{/* [&>*:not(:first-child)]:border-l-2 */} {problemsSectionData.map((item: any, index) => { return ( <>

{item.title}
{item.content}
); })} {/*

User Information​

Providing accurate and easy-to-understand information for users​

Interaction

Providing a good user experience with high interactivity, encourage users to provide more valuable information about their illness​

*/}
); }; export default ProblemsSection;