import React from 'react'
import resetUserSettings from '../../api/resetUserSettings'
import ButtonActionProvider from '../Actions/ButtonActionProvider'
import Button from '../Buttons/Button'
/**
* Helper to reset the users settings.
*
* @param customActionHook
* @param completeCallback
* @param errorCallback
* @returns {*}
* @constructor
*/
const ResetUserSettings = ({ customActionHook = null, completeCallback = null, errorCallback = null }) => {
return (
}
LoadingButton={}
ErrorButton={}
SuccessButton={}
CompletedButton={}
actionHook={() => customActionHook ? customActionHook() : resetUserSettings()}
isAlreadyCompleted={false}
completedCallback={() => {
if (completeCallback) {
completeCallback()
}
window.location.reload()
}}
errorCallback={errorCallback}
/>
)
}
export default ResetUserSettings