import React from 'react'; import { Tabs, Tab } from 'carbon-components-react'; import styles from './patient.scss'; import UnderARV from './Tabs/UnderARV'; import BeforeARV from './Tabs/BeforeARV'; import { forwardRef } from 'react' interface PatientTabIndexProps { patientUuid?: string; } interface TabPanelProps { label: string, value: number, index: number, component?: any, } const patientTabConfig = [ { label: "Đang điều trị ARV", index: 0, component: }, { label: "Trước ARV", index: 1, component: } ] const PatientTabIndex: React.FC = ({ }) => { const [value, setValue] = React.useState(0); const handleChangeValue = (value: number) => { setValue(value); }; return ( Các thông tin cần quan tâm {patientTabConfig.map((item, index) => { return ( {value === index && ( item.component )} ) })} ); } export default PatientTabIndex;