diff --git a/apps/cms/src/app/(protected)/content/article/page.tsx b/apps/cms/src/app/(protected)/content/article/page.tsx index ae5b9aa9..03287d3e 100644 --- a/apps/cms/src/app/(protected)/content/article/page.tsx +++ b/apps/cms/src/app/(protected)/content/article/page.tsx @@ -60,28 +60,33 @@ export default function DocumentTypeDocumentsPage() { * @constant * @type {JSX.Element} */ - const modalActionAudioInput = ( + const modalActionAudioInput: JSX.Element = isRecording ? ( + Recording... + ) : (
{/* Start button to close the audio input modal */} - + {/* End button to close the audio input modal */} {/* Start button to save changes audio input */} - + {/* End button to save changes audio input */}
); + /** + * Modal header right. + * @constant + * @type {JSX.Element} + */ + const headerRight: JSX.Element = ( + + ); + return ( <> }> @@ -100,7 +105,7 @@ export default function DocumentTypeDocumentsPage() {
+ {headerLeft ? headerLeft :

{title}

} + + {headerRight ? ( + headerRight + ) : ( + + )}
{/* End modal header */} {/* Start modal body */} -
{children}
+
{children}
{/* End modal body */} {/* Modal footer */} @@ -65,13 +70,9 @@ export function Modal({ {actions ? ( actions ) : ( - + )}