| 1 |
import { UpdatePostConfirmEditor } from '@agent/workflows/content/components/UpdatePostConfirmEditor'; |
| 2 |
|
| 3 |
const { abilities, context } = window.extAgentData; |
| 4 |
|
| 5 |
// When on the edit screen |
| 6 |
export default { |
| 7 |
available: () => |
| 8 |
abilities?.canEditPost && |
| 9 |
context?.usingBlockEditor && |
| 10 |
context?.adminPage && |
| 11 |
context?.postId, |
| 12 |
id: 'edit-post-strings-editor', |
| 13 |
whenFinished: { component: UpdatePostConfirmEditor }, |
| 14 |
}; |
| 15 |
|