-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathDevTools.jsx
More file actions
24 lines (19 loc) · 843 Bytes
/
DevTools.jsx
File metadata and controls
24 lines (19 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { useParams } from "react-router-dom";
import Layout from "../../components/Layout/Layout";
import MarkDownEditor from "../../components/DevAreaTools/MarkDownEditor";
import JSONFormatter from "../../components/DevAreaTools/JSONFormatter";
import JWTDecoder from "../../components/DevAreaTools/JwtDecoder";
import URLEncoderDecoder from "../../components/DevAreaTools/URLEncoderDecoder";
import XmlFormatter from "../../components/DevAreaTools/XmlFormatter";
const DevTools = () => {
const { tool } = useParams();
const tools = {
markdown: <MarkDownEditor />,
jwtdecoder: <JWTDecoder />,
"json-formatter": <JSONFormatter />,
"url-encoder-decoder": <URLEncoderDecoder />,
"xml-formatter": <XmlFormatter />,
}
return <Layout>{tools[tool]}</Layout>;
};
export default DevTools;