don't think any company will
you can take whatever maternaty leave is allowed by your company policy, but I seriously doubt that any company will let you take off one year. If you got fired for taking off too long, then of course, you loose your H1 too.