mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-20 23:54:23 +01:00
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import React from 'react';
|
|
import { ScrollArea } from '../ui/scroll-area';
|
|
import BackButton from '../ui/BackButton';
|
|
import type { View } from '../../App';
|
|
import ExtensionsSection from './extensions/ExtensionsSection';
|
|
import ModelsSection from './models/ModelsSection';
|
|
|
|
export type SettingsViewOptions = {
|
|
extensionId?: string;
|
|
showEnvVars?: boolean;
|
|
};
|
|
|
|
export default function SettingsView({
|
|
onClose,
|
|
setView,
|
|
viewOptions,
|
|
}: {
|
|
onClose: () => void;
|
|
setView: (view: View) => void;
|
|
viewOptions: SettingsViewOptions;
|
|
}) {
|
|
return (
|
|
<div className="h-screen w-full">
|
|
<div className="relative flex items-center h-[36px] w-full bg-bgSubtle"></div>
|
|
|
|
<ScrollArea className="h-full w-full">
|
|
<div className="flex flex-col pb-24">
|
|
<div className="px-8 pt-6 pb-4">
|
|
<BackButton onClick={() => onClose()} />
|
|
</div>
|
|
|
|
{/* Content Area */}
|
|
<div className="flex-1 pt-[20px]">
|
|
<div className="space-y-8">
|
|
{/* Models Section */}
|
|
<ModelsSection setView={setView} />
|
|
{/* Extensions Section */}
|
|
<ExtensionsSection />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ScrollArea>
|
|
</div>
|
|
);
|
|
}
|