Changeset 0.37.4 (#216)
Co-authored-by: gobha <jasafpro@gmail.com> Co-committed-by: gobha <jasafpro@gmail.com>
This commit is contained in:
15
src/js/sw/shell/surface-viewport.js
Normal file
15
src/js/sw/shell/surface-viewport.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* SurfaceViewport — container where the active surface renders
|
||||
*
|
||||
* Deliberately thin for v0.37.4. Error boundaries and
|
||||
* surface transitions will be added in later versions.
|
||||
*/
|
||||
const { html } = window;
|
||||
|
||||
export function SurfaceViewport({ surface = null, className = '' }) {
|
||||
return html`
|
||||
<div class="sw-surface-viewport ${className}">
|
||||
${surface}
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
Reference in New Issue
Block a user