diff --git a/src/components/AlertPopup.tsx b/src/components/AlertPopup.tsx index e9334ee..2216d13 100644 --- a/src/components/AlertPopup.tsx +++ b/src/components/AlertPopup.tsx @@ -1,12 +1,16 @@ import { createPortal } from 'react-dom' +import { PropsWithChildren } from 'react' import { AlertPopupProps } from 'types' export const AlertPopup = ({ header, label, handleConfirm, - handleClose -}: AlertPopupProps) => { + handleClose, + yesButtonLabel = 'Yes', + noButtonLabel = 'No', + children +}: PropsWithChildren) => { return createPortal(
@@ -38,6 +42,7 @@ export const AlertPopup = ({ > {label} + {children}
handleConfirm(true)} > - Yes + {yesButtonLabel}