@@ -24,6 +24,16 @@ export interface AttachmentEditProps {
2424 displayMode ?: ChatbotDisplayMode ;
2525 /** Sets modal to compact styling. */
2626 isCompact ?: boolean ;
27+ /** Primary action button text */
28+ primaryActionButtonText ?: string ;
29+ /** Secondary action button text */
30+ secondaryActionButtonText ?: string ;
31+ /** Class applied to modal header */
32+ modalHeaderClassName ?: string ;
33+ /** Class applied to modal body */
34+ modalBodyClassName ?: string ;
35+ /** Class applied to modal footer */
36+ modalFooterClassName ?: string ;
2737}
2838
2939export const AttachmentEdit : FunctionComponent < AttachmentEditProps > = ( {
@@ -35,7 +45,12 @@ export const AttachmentEdit: FunctionComponent<AttachmentEditProps> = ({
3545 onSave,
3646 title = 'Edit attachment' ,
3747 displayMode = ChatbotDisplayMode . default ,
38- isCompact
48+ isCompact,
49+ modalHeaderClassName,
50+ modalBodyClassName,
51+ modalFooterClassName,
52+ primaryActionButtonText = 'Save' ,
53+ secondaryActionButtonText = 'Cancel'
3954} : AttachmentEditProps ) => {
4055 const handleSave = ( _event : ReactMouseEvent | MouseEvent | KeyboardEvent , code ) => {
4156 handleModalToggle ( _event ) ;
@@ -55,11 +70,14 @@ export const AttachmentEdit: FunctionComponent<AttachmentEditProps> = ({
5570 isModalOpen = { isModalOpen }
5671 onPrimaryAction = { handleSave }
5772 onSecondaryAction = { handleCancel }
58- primaryActionBtn = "Save"
59- secondaryActionBtn = "Cancel"
73+ primaryActionBtn = { primaryActionButtonText }
74+ secondaryActionBtn = { secondaryActionButtonText }
6075 title = { title }
6176 displayMode = { displayMode }
6277 isCompact = { isCompact }
78+ modalHeaderClassName = { modalHeaderClassName }
79+ modalBodyClassName = { modalBodyClassName }
80+ modalFooterClassName = { modalFooterClassName }
6381 />
6482 ) ;
6583} ;
0 commit comments