2024-07-18 14:54:11 +02:00
|
|
|
import * as React from "bloatless-react";
|
|
|
|
|
|
|
|
|
|
import { Chat, MessageObject } from "../../Model/chatModel";
|
|
|
|
|
|
|
|
|
|
import { ObjectGridView } from "./objectGridView";
|
2024-07-18 17:42:41 +02:00
|
|
|
import { DayView } from "./dayView";
|
|
|
|
|
import { dayInCalendar } from "../../Model/model";
|
2024-07-18 14:54:11 +02:00
|
|
|
|
|
|
|
|
export function CalendarView(
|
|
|
|
|
chat: Chat,
|
|
|
|
|
messageObjects: React.MapState<MessageObject>,
|
|
|
|
|
selectedObject: React.State<MessageObject | undefined>,
|
|
|
|
|
isShowingObjectModal: React.State<boolean>
|
|
|
|
|
) {
|
2024-07-18 17:42:41 +02:00
|
|
|
return <div class="calendar-wrapper">
|
|
|
|
|
<div class="month-grid">
|
|
|
|
|
<input type="date" bind:value={dayInCalendar}></input>
|
|
|
|
|
</div>
|
|
|
|
|
{DayView(chat, messageObjects, selectedObject, isShowingObjectModal)}
|
|
|
|
|
</div>
|
2024-07-18 14:54:11 +02:00
|
|
|
}
|