matrix-public-archive/shared/ArchiveView.js

19 lines
391 B
JavaScript
Raw Normal View History

'use strict';
2022-02-10 01:21:49 -07:00
const { TemplateView, RoomView, RightPanelView } = 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)), t.view(new RightPanelView(vm.rightPanelModel))]
);
}
}
2022-02-10 01:21:49 -07:00
module.exports = ArchiveView;