* Enable import/no-anonymous-default-export * Add names to default exported * More * Ignore shims * Update scripts/build/config.mjs Co-authored-by: fisker Cheung <lionkay@gmail.com> * lint for shims Co-authored-by: fisker Cheung <lionkay@gmail.com>
15 lines
406 B
JavaScript
15 lines
406 B
JavaScript
import * as React from "react";
|
|
import * as ReactDOM from "react-dom";
|
|
|
|
const root = document.getElementById("bottom-bar");
|
|
|
|
export default function BottomBar({ left, right }) {
|
|
return ReactDOM.createPortal(
|
|
<React.Fragment>
|
|
<div className="bottom-bar-buttons">{left}</div>
|
|
<div className="bottom-bar-buttons bottom-bar-buttons-right">{right}</div>
|
|
</React.Fragment>,
|
|
root
|
|
);
|
|
}
|