import { useEffect, useState } from "react"
import ApiService from "../services/api";
import { useAuth } from "../contexts/AuthContext";
/**
* Setting component displays a basic setting page.
* Currently, it's a placeholder with a "hello" heading.
* It includes commented-out code for fetching dashboard memos,
* which can be uncommented and implemented for actual settings functionality.
*/
function Setting(){
const [data,setData] = useState({});
const {hospital,user,apiService} = useAuth();
// Uncomment and implement the following useEffect for actual settings logic
// that requires fetching data on component mount.
// useEffect(async ()=>{
// const d = await apiService.getDashboardMemos(hospital.id);
// console.log(d);
// setData(d);
// },[])
return (
<>
<h1>hello</h1>
</>
)
}
export default Setting;
Source