All files / src/components/ProfileMenu/hooks useProfileForms.tsx

100% Statements 5/5
66.66% Branches 2/3
100% Functions 1/1
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16      8x 1536x 1536x   1536x           1536x    
import { useAccount } from "@hooks/common/useAccount";
import { useSecurityPassword } from "../modals/hooks/useSecurityPassword";
 
export const useProfileForms = (tab = "Account Details") => {
  const accountForm = useAccount();
  const securityForm = useSecurityPassword();
 
  const profileForms: any = {
    "Account Details": accountForm,
    Security: securityForm,
    Accessibility: accountForm,
  };
 
  return profileForms[tab] || {};
};