1- import { useState } from 'react'
21import { ProgressCard } from '@/pages/home/progress/ProgressCard'
3- import { BottomSheetDialog } from '@/components/BottomSheetDialog/BottomSheetDialog'
4- import type { Appointment } from '@/components/BottomSheetDialog/types'
52import { DailyTips } from './dailyTips/DailyTips'
63import { CheckIn } from './checkIn/CheckIn'
74import { HomeButtomDesktop , HomeButtomMobile , HomeTopDesktop , HomeTopMobile } from './styles'
@@ -10,29 +7,15 @@ import { SGLTypography } from '@/components/UI/Typography/SGLTypography'
107import { useTranslation } from 'react-i18next'
118import { useIsMobile } from '@/hooks/useIsMobile'
129import { Welcome } from './welcome/Welcome'
10+ import { AppointmentBottomSheet } from './AppointmentBottomSheet/AppointmentBottomSheet'
1311
1412export const Home = ( ) => {
15- const [ selectedAppointment , setSelectedAppointment ] = useState < Appointment | undefined > ( {
16- appointmentId : '1' ,
17- patientId : 1622017 ,
18- time : '10:12:50' ,
19- date : '2026-05-15' ,
20- chamber : 'appointment.chamber.hyperbaric' ,
21- chairNumber : 9 ,
22- treatmentNumber : 2 ,
23- status : 'confirmed' ,
24- } )
25-
2613 const { t } = useTranslation ( )
2714 const isMobile = useIsMobile ( )
2815
2916 return (
3017 < >
31- < BottomSheetDialog
32- appointment = { selectedAppointment }
33- isOpen = { ! ! selectedAppointment }
34- onClose = { ( ) => setSelectedAppointment ( undefined ) }
35- />
18+ < AppointmentBottomSheet />
3619 < div style = { isMobile ? HomeTopMobile : HomeTopDesktop } >
3720 < Welcome />
3821 < ProgressCard value = { 10 } />
0 commit comments