Remove CharacterComponent and CharacterDetail components

- Deleted `CharacterComponent` and `CharacterDetail` files from the project.
- Refactored related logic to improve code maintainability and reduce redundancy.
This commit is contained in:
natreex
2026-02-05 14:12:08 -05:00
parent cec5830360
commit 209dc6f85a
133 changed files with 17673 additions and 3110 deletions

View File

@@ -1,18 +1,25 @@
'use client'
import {useState} from "react";
import BookSettingSidebar from "@/components/book/settings/BookSettingSidebar";
import BookSettingOption from "@/components/book/settings/BookSettingOption";
import SettingsPanel from "@/components/SettingsPanel";
import {useTranslations} from "next-intl";
export default function BookSetting() {
const [currentSetting, setCurrentSetting] = useState<string>('basic-information')
return (
<div
className={'flex justify-start bg-tertiary/90 backdrop-blur-sm rounded-2xl overflow-hidden border border-secondary/50 shadow-2xl'}>
<div className={'bg-secondary/30 backdrop-blur-sm w-1/4 border-r border-secondary/50'}>
<BookSettingSidebar selectedSetting={currentSetting} setSelectedSetting={setCurrentSetting}/>
</div>
<div className={'flex-1 setting-container bg-tertiary/50 p-6'}>
<BookSettingOption setting={currentSetting}/>
</div>
</div>
)
interface BookSettingProps {
onClose: () => void;
}
export default function BookSetting({onClose}: BookSettingProps) {
const t = useTranslations();
const [currentSetting, setCurrentSetting] = useState<string>('basic-information');
return (
<SettingsPanel
title={t("controllerBar.bookSettings")}
sidebar={<BookSettingSidebar selectedSetting={currentSetting} setSelectedSetting={setCurrentSetting}/>}
onClose={onClose}
>
<BookSettingOption setting={currentSetting}/>
</SettingsPanel>
);
}