If she's willing to 'stay as long as they need her', the obvious answer is that she should keep her bags packed and the phone number of a local cab company pinned to the front door.
She called an unnecessary election, lost seats, lost ministers, lost her party's majority. Does she think her party wants or needs that type of performance?