/** * A function to generate the HTML for a Crayons modal within the /admin/ space. * * @function adminModal * @param {Object} modalProps Properties of the Modal * @param {string} modalProps.title The title of the modal. * @param {string} modalProps.body The modal's content. May use HTML tags for styling. * @param {string} modalProps.leftBtnText The text for the modal's left button. * @param {string} modalProps.leftBtnAction The function that fires when left button is clicked. * @param {string} modalProps.rightBtnText The text for the modal's right button. * @param {string} modalProps.rightBtnAction The function that fires when right button is clicked. * @param {string} modalProps.leftBtnClasses Classes applied to left button. * @param {string} modalProps.rightBtnClasses Classes applied to right button. * @param {string} modalProps.leftCustomDataAttr A custom data attribute for the left button. * @param {string} modalProps.rightCustomDataAttr A custom data attribute for the right button. */ export const adminModal = function ({ title, body, leftBtnText, leftBtnAction, rightBtnText, rightBtnAction, leftBtnClasses, rightBtnClasses, leftCustomDataAttr = null, rightCustomDataAttr = null, }) { return `

${title}

${body}
`; };