| 1 |
import { __ } from '@wordpress/i18n'; |
| 2 |
|
| 3 |
// The backend owns their descriptions; this is what this build can run. |
| 4 |
const IMPLEMENTED = ['acquire-image']; |
| 5 |
|
| 6 |
export const getClientTools = () => { |
| 7 |
const { abilities } = window.extAgentData ?? {}; |
| 8 |
if (!abilities?.canUploadMedia) return []; |
| 9 |
return IMPLEMENTED; |
| 10 |
}; |
| 11 |
|
| 12 |
// Keeps the tool's UI from appearing in chat unexplained when the lead-in is empty. |
| 13 |
export const getClientToolFallbackReply = (toolId) => |
| 14 |
toolId === 'acquire-image' |
| 15 |
? __( |
| 16 |
'Select or generate an image below, or press Skip to continue without one.', |
| 17 |
'extendify-local', |
| 18 |
) |
| 19 |
: null; |
| 20 |
|