refactor(config): comment out text-translate feature configuration in GetConfig and TextShareDrawer for future implementation

This commit is contained in:
keven1024
2026-05-23 22:50:14 +08:00
parent cf92a50c82
commit a8f504f377
2 changed files with 15 additions and 15 deletions

View File

@@ -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('复制链接') }