Create

id

com.naviga.writer-create-new-article

description

Create new article in Writer application/modal or in a new tab

import { Plugin, Utility } from '@root'

const MyAwesomeComponent = props => {
    const createNewArticle = Utility.useLazyRef(() => {
        return Plugin.getAction('your-bounded-action-id')
    })
     
    createNewArticle.current()

    /**
        Depending on current settings active in your plugin it will either open a new
        article in a new tab or a modal. If Writer plugin is active in current 
        workspace the new article will open within that plugin.
    */
}