fit-plan-creator
Install
npm install fit-plan-creator
porps
It takes 7 props:
- patientInfoDetail={object}
- chronicCategory={Array}//in case of ccm
- type='ccm' or 'rpm'
- answers=[]//useState variagle
- setAnswers={}//useState Setter Function.
- navigate={instance of useNavigate()} // in case of ccm
- navigateUrl = Stirng url address for redirecting to specific page.
Usage
import AddCareplan from 'fit-plan-creator'
import {useNavigate} from 'react-router-dom'
const [answers, setAnswers] = useState([])
const navigate = useNavigate();
<AddCareplan patientInfoDetail={patientInfo} chronicCategory={chronicCat} type='ccm' answers={answers} setAnswers={setAnswers} navigate={navigate} navigateUrl="/specific/address"/>
License
MIT © Fitpeo