mirror of
https://github.com/keven1024/015.git
synced 2026-06-05 20:09:35 +00:00
refactor(config): comment out text-translate feature configuration in GetConfig and TextShareDrawer for future implementation
This commit is contained in:
@@ -20,15 +20,15 @@ const actionHandlers: Partial<Record<FeatureKey, ActionHandler>> = {
|
||||
'text-share': {
|
||||
onClick: () => showDrawer({ render: ({ hide }) => h(TextShareHandle, { ...props, hide }) }),
|
||||
},
|
||||
'text-translate': {
|
||||
onClick: () =>
|
||||
props.onTextHandle({
|
||||
type: 'text-translate',
|
||||
config: {
|
||||
source: 'auto',
|
||||
},
|
||||
}),
|
||||
},
|
||||
// 'text-translate': {
|
||||
// onClick: () =>
|
||||
// props.onTextHandle({
|
||||
// type: 'text-translate',
|
||||
// config: {
|
||||
// source: 'auto',
|
||||
// },
|
||||
// }),
|
||||
// },
|
||||
// 'text-image-generate': {
|
||||
// label: '生成配图', icon: LucideImage, className: 'bg-red-300',
|
||||
// onClick: () => { console.log('复制链接') }
|
||||
|
||||
Reference in New Issue
Block a user