import { forwardRef } from "react"; import QRCode from "react-qr-code"; import { useSelector } from "react-redux"; import LoadingSpinner from "../../Spinners/LoadingSpinner"; const FamilyAccount = forwardRef(({ familyData, myRef, handlePrint}, ref) => { const { userDetails } = useSelector((state) => state.userDetails); return (

Firstname: {familyData?.data?.firstname ? familyData?.data?.firstname : "please wait..."}

Username:{" "} {familyData?.data?.username ? familyData?.data?.username : "please wait..."}

Pin:{" "} {familyData?.data?.pin ? familyData?.data?.pin : "please wait..."}

or

Scan the code from mobile app

{familyData.loading ?
: }
); }); export default FamilyAccount;