Copy

import { Plugin, Utility } from '@root'

const MyAwesomeComponent = props => {
    const copyArticle = Utility.useLazyRef(() => {
        return Plugin.getAction('your-bounded-action-id')
    })
    
    /**
        Now the action is bounded to the ref we can call it and pass in the uuid
        of the article we want to copy. This will open up a modal with the article
        and we are able to make changes directly to the copy
        
        copyArticle.current("838d42cf-507a-c701-f46d-6cd0a738cca4")
    */
}

Last updated