feat: Enable title generation in GeneralSettings component

This commit is contained in:
n4ze3m
2024-08-05 00:49:27 +05:30
parent 48a4af50ee
commit eccf8f8a88
4 changed files with 99 additions and 9 deletions

View File

@@ -29,6 +29,8 @@ export const GeneralSettings = () => {
false
)
const [generateTitle, setGenerateTitle] = useStorage("titleGenEnabled", false)
const [hideCurrentChatModelSettings, setHideCurrentChatModelSettings] =
useStorage("hideCurrentChatModelSettings", false)
@@ -141,6 +143,19 @@ export const GeneralSettings = () => {
/>
</div>
<div className="flex flex-row justify-between">
<div className="inline-flex items-center gap-2">
<span className="text-gray-700 dark:text-neutral-50">
{t("generalSettings.settings.generateTitle.label")}
</span>
</div>
<Switch
checked={generateTitle}
onChange={(checked) => setGenerateTitle(checked)}
/>
</div>
<div className="flex flex-row justify-between">
<span className="text-gray-700 dark:text-neutral-50 ">
{t("generalSettings.settings.darkMode.label")}