mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
feat: chatgpt-prompts sync
This commit is contained in:
10
src/routes.tsx
vendored
10
src/routes.tsx
vendored
@@ -2,12 +2,14 @@ import { useRoutes } from 'react-router-dom';
|
||||
import {
|
||||
DesktopOutlined,
|
||||
BulbOutlined,
|
||||
SyncOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import type { RouteObject } from 'react-router-dom';
|
||||
import type { MenuProps } from 'antd';
|
||||
|
||||
import General from '@view/General';
|
||||
import LanguageModel from '@/view/LanguageModel';
|
||||
import SyncPrompts from '@/view/SyncPrompts';
|
||||
|
||||
export type ChatRouteObject = {
|
||||
label: string;
|
||||
@@ -31,6 +33,14 @@ export const routes: Array<RouteObject & { meta: ChatRouteObject }> = [
|
||||
icon: <BulbOutlined />,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/sync-prompts',
|
||||
element: <SyncPrompts />,
|
||||
meta: {
|
||||
label: 'Sync Prompts',
|
||||
icon: <SyncOutlined />,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
type MenuItem = Required<MenuProps>['items'][number];
|
||||
|
||||
Reference in New Issue
Block a user