matrix-public-archive/shared/ArchiveView.js

22 lines
452 B
JavaScript
Raw Normal View History

'use strict';
const { TemplateView, RoomView, RightPanelView, viewClassForTile } = require('hydrogen-view-sdk');
2022-02-10 01:21:49 -07:00
class ArchiveView extends TemplateView {
render(t, vm) {
2022-02-10 01:21:49 -07:00
return t.div(
{
className: {
2022-02-10 01:21:49 -07:00
ArchiveView: true,
},
2022-02-10 01:21:49 -07:00
},
[
t.view(new RoomView(vm.roomViewModel, viewClassForTile)),
t.view(new RightPanelView(vm.rightPanelModel)),
]
2022-02-10 01:21:49 -07:00
);
}
}
2022-02-10 01:21:49 -07:00
module.exports = ArchiveView;