'use client' import type { FC } from 'react' import * as React from 'react' import { useStore as useAppStore } from '@/app/components/app/store' import ContentArea from './content-area' import ContentBody from './content-body' import FileContentPanel from './file-content-panel' import FileTabs from './file-tabs' import FileTree from './file-tree' import ArtifactsSection from './file-tree/artifacts-section' import { useSkillAutoSave } from './hooks/use-skill-auto-save' import { SkillSaveProvider } from './hooks/use-skill-save-manager' import Sidebar from './sidebar' import SidebarSearchAdd from './sidebar-search-add' import SkillPageLayout from './skill-page-layout' const SkillAutoSaveManager: FC = () => { useSkillAutoSave() return null } const SkillMain: FC = () => { const appDetail = useAppStore(s => s.appDetail) const appId = appDetail?.id || '' return (