Skip to content

Commit 339937d

Browse files
committed
feat: enhance GenericModalFooterProps with detailed comments
1 parent f29a413 commit 339937d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • src/Shared/Components/GenericModal

src/Shared/Components/GenericModal/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,18 @@ export interface GenericModalProps extends Partial<Pick<BackdropProps, 'onEscape
2323
export interface GenericModalContextType extends Pick<GenericModalProps, 'name' | 'onClose'> {}
2424

2525
export interface GenericModalHeaderProps {
26+
/** Title text displayed in the modal header */
2627
title: string
2728
}
2829

2930
export interface GenericModalFooterProps {
31+
/** Configuration for the buttons displayed in the modal footer */
3032
buttonConfig?: {
33+
/** Properties for the primary action button */
3134
primaryButton?: ButtonProps
35+
/** Properties for the secondary action button */
3236
secondaryButton?: ButtonProps
3337
}
38+
/** Optional element to be displayed on the left side of the footer */
3439
leftSideElement?: React.ReactNode
3540
}

0 commit comments

Comments
 (0)