import { type App } from 'vue'
import AppIcon from './icons/AppIcon.vue'
import AppAvatar from './app-avatar/index.vue'
// import LoginLayout from './login-layout/index.vue'
import LoginContainer from './login-container/index.vue'
import LayoutContainer from './layout-container/index.vue'
import CardBox from './card-box/index.vue'
import CardAdd from './card-add/index.vue'
import BackButton from './back-button/index.vue'
import AppTable from './app-table/index.vue'
import ReadWrite from './read-write/index.vue'
import TagEllipsis from './tag-ellipsis/index.vue'
import CommonList from './common-list/index.vue'
import CardCheckbox from './card-checkbox/index.vue'
import InfiniteScroll from './infinite-scroll/index.vue'
import AutoTooltip from './auto-tooltip/index.vue'
import MdEditor from './markdown/MdEditor.vue'
import MdPreview from './markdown/MdPreview.vue'
import MdEditorMagnify from './markdown/MdEditorMagnify.vue'
import LogoFull from './logo/LogoFull.vue'
import LogoIcon from './logo/LogoIcon.vue'
import SendIcon from './logo/SendIcon.vue'
import TopTabs from './top-tabs/index.vue'
import CardBoxAgent from './card-box-agent/index.vue'
import CardBoxDataset from './card-box-dataset/index.vue'
import DialogBox from './dialog-box/index.vue'
import JustMine from './just-mine/index.vue'
import AppLink from './app-link/index.vue'
import TagInputWrapper from './tag-input-wrapper/index.vue'
import NewMdPreview from './markdown/NewMdPreview.vue'




/**已抽取组件*/
// import SvgIcon from './svg-icon/index.vue'
// import PageEmpty from './page-empty/index.vue'




// import CodemirrorEditor from './codemirror-editor/index.vue'
// import ModelSelect from './model-select/index.vue'
// import AiChat from './ai-chat/index.vue'
// import AiChatNew from './ai-chat-new/index.vue'
// import AiChatDiy from './ai-chat-diy/index.vue'
// import TagsInput from './tags-input/index.vue'
// import dynamicsForm from './dynamics-form'





export default {
  install(app: App) {
    app.component(AppIcon.name || '', AppIcon)
    app.component(AppAvatar.name || '', AppAvatar)
    // app.component(LoginLayout.name || '', LoginLayout)
    app.component(LoginContainer.name || '', LoginContainer)
    app.component(LayoutContainer.name || '', LayoutContainer)
    app.component(CardBox.name || '', CardBox)
    app.component(CardAdd.name || '', CardAdd)
    app.component(BackButton.name || '', BackButton)
    app.component(AppTable.name || '', AppTable)
    app.component(ReadWrite.name || '', ReadWrite)
    app.component(TagEllipsis.name || '', TagEllipsis)
    app.component(CommonList.name || '', CommonList)
    app.component(CardCheckbox.name || '', CardCheckbox)
    app.component(InfiniteScroll.name || '', InfiniteScroll)
    app.component(AutoTooltip.name || '', AutoTooltip)
    app.component(MdPreview.name || '', MdPreview)
    app.component(MdEditor.name || '', MdEditor)
    app.component(LogoFull.name || '', LogoFull)
    app.component(LogoIcon.name || '', LogoIcon)
    app.component(SendIcon.name || '', SendIcon)
    app.component(MdEditorMagnify.name || '', MdEditorMagnify)
    app.component(TopTabs.name  || '', TopTabs)
    app.component(CardBoxAgent.name || '', CardBoxAgent)
    app.component(CardBoxDataset.name || '', CardBoxDataset)
    app.component(DialogBox.name || '', DialogBox)
    app.component(JustMine.name || '', JustMine)
    app.component(AppLink.name || '' , AppLink)
    app.component(TagInputWrapper.name || '', TagInputWrapper)
    app.component(NewMdPreview.name || '', NewMdPreview)

    // app.component(PageEmpty.name || '', PageEmpty)
    // app.component(SvgIcon.name || '', SvgIcon)



    // app.component(AiChat.name, AiChat)
    // app.component(AiChatNew.name, AiChatNew)
    // app.component(AiChatDiy.name || '', AiChatDiy)
    // app.component(ModelSelect.name, ModelSelect)
    // app.component(CodemirrorEditor.name, CodemirrorEditor)
    // app.use(dynamicsForm)
    // app.component(TagsInput.name, TagsInput)




  }
}
