/** * A function to generate the HTML for a Crayons modal within the /admin/ space. * * @function adminModal * @param {string} title The title of the modal. * @param {string} body The modal's content. May use HTML tags for styling. * @param {string} confirmBtnText The text for the modal's "Confirm" button. * @param {string} confirmBtnAction The function that fires when "Confirm" button is clicked. * @param {string} cancelBtnText The text for the modal's "Cancel" button. * @param {string} cancelBtnAction The function that fires when "Cancel" button is clicked. * @param {string} customAttr A custom data attribute name. Will be apprended to the "data-" part. * @param {string} customAttrValue The value of the custom attribute "customAttr". */ const adminModal = ( title, body, confirmBtnText, confirmBtnAction, cancelBtnText, cancelBtnAction, customAttr = null, customAttrValue = null, ) => `

${title}

${body}
`; export default adminModal;