2022-02-15 16:30:30 -07:00
|
|
|
'use strict';
|
|
|
|
|
2022-06-08 13:03:36 -06:00
|
|
|
const {
|
|
|
|
TemplateView,
|
|
|
|
RoomView,
|
|
|
|
RightPanelView,
|
|
|
|
LightboxView,
|
|
|
|
viewClassForTile,
|
|
|
|
} = require('hydrogen-view-sdk');
|
2022-02-10 00:42:02 -07:00
|
|
|
|
2022-02-10 01:21:49 -07:00
|
|
|
class ArchiveView extends TemplateView {
|
2022-02-10 00:42:02 -07:00
|
|
|
render(t, vm) {
|
2022-02-10 01:21:49 -07:00
|
|
|
return t.div(
|
|
|
|
{
|
2022-02-10 00:42:02 -07:00
|
|
|
className: {
|
2022-02-10 01:21:49 -07:00
|
|
|
ArchiveView: true,
|
2022-02-10 00:42:02 -07:00
|
|
|
},
|
2022-02-10 01:21:49 -07:00
|
|
|
},
|
2022-06-06 17:58:45 -06:00
|
|
|
[
|
|
|
|
t.view(new RoomView(vm.roomViewModel, viewClassForTile)),
|
|
|
|
t.view(new RightPanelView(vm.rightPanelModel)),
|
2022-06-08 13:03:36 -06:00
|
|
|
t.mapView(
|
|
|
|
(vm) => vm.lightboxViewModel,
|
|
|
|
(lightboxViewModel) => (lightboxViewModel ? new LightboxView(lightboxViewModel) : null)
|
|
|
|
),
|
2022-06-06 17:58:45 -06:00
|
|
|
]
|
2022-02-10 01:21:49 -07:00
|
|
|
);
|
2022-02-10 00:42:02 -07:00
|
|
|
}
|
|
|
|
}
|
2022-02-10 01:21:49 -07:00
|
|
|
|
|
|
|
module.exports = ArchiveView;
|