-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
App.jsx
36 lines (32 loc) · 1.07 KB
/
App.jsx
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
/*
* File: App.jsx
* Project: discord-rpc
* File Created: Saturday, 4th February 2023 9:16:06 am
* Author: Tee ([email protected])
* Github: https://github.com/teeteeteeteetee
* Discord: Tee#0001
*
* Last Modified: Saturday, 25th November 2023 2:49:42 pm
* Modified By: Tee ([email protected])
*
* Copyright (c) 2023 Tee, Stainless Love
*/
import React, { useState, useEffect } from 'react';
import Navigator from './components/Navigator';
import Preview from './page/Preview';
import Config from './page/Config';
import Debug from './page/Debug';
import Repository from './page/Repository';
export default function App(props) {
const [state, setState] = useState("");
useEffect(() => setState("Preview"), [])
return (
<div className='h-screen w-full'>
<Navigator setState={setState} />
{state === "Preview" && <Preview />}
{state === "Config" && <Config />}
{state === "Debug" && <Debug />}
{state === "Repository" && <Repository />}
</div>
)
}