2022-02-15 20:33:31 -07:00
|
|
|
'use strict';
|
|
|
|
|
2022-02-10 01:21:49 -07:00
|
|
|
const { TemplateView } = require('hydrogen-view-sdk');
|
|
|
|
|
2022-02-14 20:11:55 -07:00
|
|
|
const CalendarView = require('matrix-public-archive-shared/CalendarView');
|
|
|
|
|
2022-02-10 01:21:49 -07:00
|
|
|
class RightPanelContentView extends TemplateView {
|
|
|
|
render(t, vm) {
|
|
|
|
return t.div(
|
|
|
|
{
|
|
|
|
className: {
|
|
|
|
todo: true,
|
|
|
|
},
|
|
|
|
},
|
2022-02-16 18:58:32 -07:00
|
|
|
[
|
|
|
|
t.div('test'),
|
|
|
|
t.input({
|
|
|
|
type: 'date',
|
2022-02-16 22:08:18 -07:00
|
|
|
value: vm.calendarViewModel.activeDate.toISOString().split('T')[0],
|
2022-02-16 18:58:32 -07:00
|
|
|
}),
|
|
|
|
t.view(new CalendarView(vm.calendarViewModel)),
|
|
|
|
]
|
2022-02-10 01:21:49 -07:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = RightPanelContentView;
|