strapi-supergpt
Version:
A plugin that gives you the ability to integrate ChatGPT into strapi
26 lines (22 loc) • 595 B
JSX
/**
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
*/
import React from "react";
import { Switch, Route } from "react-router-dom";
import { NoContent } from "@strapi/helper-plugin";
import pluginId from "../../pluginId";
import HomePage from "../HomePage";
const App = () => {
return (
<main>
<Switch>
<Route path={`/plugins/${pluginId}`} component={HomePage} exact />
<Route component={NoContent} />
</Switch>
</main>
);
};
export default App;