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... + ) : (
{document.data[documentType.titleField] as string}
++ {document.data[documentType.titleField] as string} +
,diff --git a/libs/ui-components/src/Modal.tsx b/libs/ui-components/src/Modal.tsx index 7d21e880..9b73b47c 100644 --- a/libs/ui-components/src/Modal.tsx +++ b/libs/ui-components/src/Modal.tsx @@ -1,4 +1,5 @@ import React from "react"; +import {Button} from "./Button"; interface ModalProps { isOpen: boolean; @@ -7,6 +8,8 @@ interface ModalProps { title: string; children: React.ReactNode; actions?: React.ReactNode; + headerRight?: React.ReactNode; + headerLeft?: React.ReactNode; } /** @@ -20,6 +23,8 @@ export function Modal({ title, children, actions, + headerRight, + headerLeft, onClose, }: ModalProps): JSX.Element | null { // If the modal is not open, don't render anything @@ -40,24 +45,24 @@ export function Modal({