UNPKG

@thirdrocktechno/strapi-gpt

Version:

A StrapiGPT plugin for integrating AI-powered custom ChatBot with your strapi content.

28 lines (24 loc) 651 B
/** * * 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 { NotFound } from '@strapi/helper-plugin'; import pluginId from '../../pluginId'; import HomePage from '../HomePage'; import "../../utils/i18n"; import "../../styles/index.css"; const App = () => { return ( <div> <Switch> <Route path={`/plugins/${pluginId}`} component={HomePage} exact /> <Route component={NotFound} /> </Switch> </div> ); }; export default App;