const App = () => {
  const [style, setStyle] = React.useState(window.__TWEAKS__.style || "dossier");

  let view = null;
  if (style === "dossier") view = <DossierView />;
  else if (style === "redacted") view = <RedactedView />;
  else if (style === "casewall") view = <CaseWallView />;

  return (
    <>
      {view}
      <TweaksPanel style={style} setStyle={setStyle} />
    </>
  );
};

ReactDOM.createRoot(document.getElementById("root")).render(<App />);
