import { Button, Divider, Input, Option, Select, Typography } from '@mui/joy' import { useContext, useEffect, useState } from 'react' import { UserContext } from '../../contexts/UserContext' import { GetUserProfile, UpdateUserDetails } from '../../utils/Fetcher' const NotificationSetting = () => { const { userProfile, setUserProfile } = useContext(UserContext) useEffect(() => { if (!userProfile) { GetUserProfile().then(resp => { resp.json().then(data => { setUserProfile(data.res) setChatID(data.res.chatID) }) }) } }, []) const [chatID, setChatID] = useState(userProfile?.chatID) return (