mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-19 15:14:21 +01:00
Feat: Recipe Library (#2946)
This commit is contained in:
@@ -20,6 +20,7 @@ import SharedSessionView from './components/sessions/SharedSessionView';
|
||||
import SchedulesView from './components/schedule/SchedulesView';
|
||||
import ProviderSettings from './components/settings/providers/ProviderSettingsPage';
|
||||
import RecipeEditor from './components/RecipeEditor';
|
||||
import RecipesView from './components/RecipesView';
|
||||
import { useChat } from './hooks/useChat';
|
||||
|
||||
import 'react-toastify/dist/ReactToastify.css';
|
||||
@@ -45,6 +46,7 @@ export type View =
|
||||
| 'sharedSession'
|
||||
| 'loading'
|
||||
| 'recipeEditor'
|
||||
| 'recipes'
|
||||
| 'permission';
|
||||
|
||||
export type ViewOptions = {
|
||||
@@ -550,6 +552,7 @@ export default function App() {
|
||||
config={(viewOptions?.config as Recipe) || window.electron.getConfig().recipeConfig}
|
||||
/>
|
||||
)}
|
||||
{view === 'recipes' && <RecipesView onBack={() => setView('chat')} />}
|
||||
{view === 'permission' && (
|
||||
<PermissionSettingsView
|
||||
onClose={() => setView((viewOptions as { parentView: View }).parentView)}
|
||||
|
||||
Reference in New Issue
Block a user