import { useTranslation } from 'react-i18next' ; import { useNavigate } from 'react-router' ; export const useMyDeviceCardHeaderEffects = ( viewDetailsLink , editDeviceLink ) => { const { t } = useTranslation ( ) ; const navigate = useNavigate ( ) ; const viewDetailsClickHandler = ( ) => navigate ( viewDetailsLink ) ; const editDeviceClickHandler = ( ) => navigate ( editDeviceLink ) ; return { viewDetailsClickHandler , editDeviceClickHandler , t } ; } ;