mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
feat: init @affine/copilot (#2511)
This commit is contained in:
12
plugins/copilot/src/UI/index.ts
Normal file
12
plugins/copilot/src/UI/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { PluginUIAdapter } from '@toeverything/plugin-infra/type';
|
||||
import { createElement } from 'react';
|
||||
|
||||
import { DebugContent } from './debug-content';
|
||||
import { DetailContent } from './detail-content';
|
||||
import { HeaderItem } from './header-item';
|
||||
|
||||
export default {
|
||||
headerItem: props => createElement(HeaderItem, props),
|
||||
detailContent: props => createElement(DetailContent, props),
|
||||
debugContent: props => createElement(DebugContent, props),
|
||||
} satisfies Partial<PluginUIAdapter>;
|
||||
Reference in New Issue
Block a user