diff --git a/striker-ui/hooks/useConfirmDialogProps.ts b/striker-ui/hooks/useConfirmDialogProps.ts new file mode 100644 index 00000000..c638a41d --- /dev/null +++ b/striker-ui/hooks/useConfirmDialogProps.ts @@ -0,0 +1,19 @@ +import { Dispatch, SetStateAction, useState } from 'react'; + +const useConfirmDialogProps = ({ + actionProceedText = '', + content = '', + titleText = '', + ...restProps +}: Partial = {}): [ + ConfirmDialogProps, + Dispatch>, +] => + useState({ + actionProceedText, + content, + titleText, + ...restProps, + }); + +export default useConfirmDialogProps;