"use client"
import { useState } from "react"
import { Button } from "@/components/ui/button"
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"
import { RichTextEditor } from "./rich-text-editor"
import { Plus, Calendar, Sun, Sunset, Moon, Clock } from "lucide-react"
interface ProgressNotesProps {
patient: any
}
export function ProgressNotes({ patient }: ProgressNotesProps) {
const [showAddNote, setShowAddNote] = useState(false)
const [currentDate, setCurrentDate] = useState(new Date().toISOString().split("T")[0])
const [morningShift, setMorningShift] = useState({
complaints: "",
findings: "",
vitals: "",
events: "",
doctor: "",
})
const [eveningShift, setEveningShift] = useState({
complaints: "",
findings: "",
vitals: "",
events: "",
doctor: "",
})
const [nightShift, setNightShift] = useState({
complaints: "",
findings: "",
vitals: "",
events: "",
doctor: "",
})
const handleShiftChange = (shift: string, field: string, value: string) => {
if (shift === "morning") {
setMorningShift((prev) => ({ ...prev, [field]: value }))
} else if (shift === "evening") {
setEveningShift((prev) => ({ ...prev, [field]: value }))
} else if (shift === "night") {
setNightShift((prev) => ({ ...prev, [field]: value }))
}
}
const ShiftCard = ({
title,
icon: Icon,
bgColor,
shift,
shiftData,
}: {
title: string
icon: any
bgColor: string
shift: string
shiftData: any
}) => (
Three-shift monitoring for {patient.name}
Start documenting daily progress with three-shift monitoring.