'use client' import React, {Dispatch, SetStateAction} from "react"; import {Book, Download, Globe, List, LucideIcon, Map, Pencil, User, Wand2} from 'lucide-react'; import {useTranslations} from '@/lib/i18n'; interface BookSettingOption { id: string; name: string; icon: LucideIcon; } export default function BookSettingSidebar( { selectedSetting, setSelectedSetting }: { selectedSetting: string, setSelectedSetting: Dispatch> }) { const t = useTranslations(); const settings: BookSettingOption[] = [ {id: 'basic-information', name: 'bookSetting.basicInformation', icon: Pencil}, {id: 'guide-line', name: 'bookSetting.guideLine', icon: List}, {id: 'story', name: 'bookSetting.story', icon: Book}, {id: 'world', name: 'bookSetting.world', icon: Globe}, {id: 'locations', name: 'bookSetting.locations', icon: Map}, {id: 'characters', name: 'bookSetting.characters', icon: User}, {id: 'spells', name: 'bookSetting.spells', icon: Wand2}, {id: 'quillsense', name: 'bookSetting.quillsense', icon: Wand2}, {id: 'export', name: 'bookSetting.export', icon: Download}, ]; return (
); }