import { useTranslation } from 'react-i18next' ; export const useUserRegisteredModalLogic = ( closeModal ) => { const { t } = useTranslation ( ) ; return { title : t ( 'user.modals.userRegistered.title' ) , text : t ( 'user.modals.userRegistered.text' ) , buttons : [ { label : t ( 'general.buttons.ok' ) , onClick : closeModal , [ 'data-cy' ] : 'user-registered-modal-ok' , } , ] , } ; } ;