File size: 1,209 Bytes
7362797
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the Chameleon License found in the
* LICENSE file in the root directory of this source tree.
*/
import { Route, Routes } from "react-router-dom";

import { GenerateMixedModal } from "./components/pages/GenerateMixedModal";

import { BasicNavbar, NavContent } from "./components/ri-components/navbars/BasicNavbar";

// JSON Viewer specific css
import "react18-json-view/src/style.css";

function App() {
  const navContent: NavContent = {
    title: "Chameleon",
    description: "Model Input/Output Viewer",
    githubLink: "https://github.com/facebookresearch/chameleon",
    showHomeLink: true,
    navItems: [
      {
        id: "paper-item",
        url: "https://arxiv.org/abs/2405.09818",
        title: "Discover how it works",
        showArrowIcon: true,
      },
    ],
  };

  return (
    <div>
      <BasicNavbar
        content={navContent}
      />

      <Routes>
        <Route index path="*" element={
          <div className="relative lg:px-12 px-5 flex flex-col">
            <GenerateMixedModal />
          </div>
        }
        />
      </Routes>
    </div>
  );
}

export default App;