Please read a bit of history because Hamas have also repeatedly supported the two state solution to Israel and been refused.
In 2006 after the Gaza election, Hamas leader sent a letter addressed to George W. Bush where he among other things declared that Hamas would accept a state on the 1967 borders including a truce. However, the Bush administration did not reply.
In July 2009, Khaled Mashal, Hamas's political bureau chief, stated Hamas's willingness to cooperate with a resolution to the Arab-Israeli conflict, which included a Palestinian state based on 1967 borders, provided that Palestinian refugees be given the right to return to Israel and that East Jerusalem be recognized as the new state's capital.
In March 2012 Mahmoud Abbas stated that there were no political differences between Hamas and Fatah as they had reached agreement on a joint political platform and on a truce with Israel. Commenting on relations with Hamas, Abbas revealed in an interview with Al Jazeera that "We agreed that the period of calm would be not only in the Gaza Strip, but also in the West Bank," adding that "We also agreed on a peaceful popular resistance [against Israel], the establishment of a Palestinian state along the 1967 borders and that the peace talks would continue if Israel halted settlement construction and accepted our conditions."
March 2015, Netanyahu PM of Israel declared that a Palestinian state would not be established during his administration (he is still PM)
The 2017 Hamas charter presented the Palestinian state being based on the 1967 borders. The text says "Hamas considers the establishment of a Palestinian state, sovereign and complete, on the basis of the June 4, 1967, with Jerusalem as its capital and the provision for all the refugees to return to their homeland."
Between 2018 and 2019, Hamas participated in "the Great March of Return" along the Gaza border with Israel. The 2018–2019 Gaza border protests, also known as the Great March of Return (Arabic: مسیرة العودة الكبرى, romanized: Masīra al-ʿawda al-kubrā), were a series of demonstrations held each Friday in the Gaza Strip near the Gaza-Israel border from 30 March 2018 until 27 December 2019, during which a total of 223 Palestinians were killed by Israeli forces. In late February 2019, a United Nations Human Rights Council's independent commission found that of the 489 cases of Palestinian deaths or injuries analyzed, only two were possibly justified as responses to danger by Israeli security forces. The commission deemed the rest of the cases illegal, and concluded with a recommendation calling on Israel to examine whether war crimes or crimes against humanity had been committed, and if so, to bring those responsible to trial.
In 2021, after tensions escalated in Sheikh Jarrah and the al-Aqsa mosque compound in Jerusalem, Israel and Hamas clashed in Gaza once again. After eleven days of fighting, at least 243 people were killed in Gaza and 12 in Israel. https://www.aljazeera.com/news/2021/6/18/israeli-forces-storm-rally-in-support-of-prophet-at-al-aqsa
Public opinion has generally been in favour of a two state solution
“In a 2002 poll conducted by PIPA, 72% of both Palestinians and Israelis supported at that time a peace settlement based on the 1967 borders so long as each group could be reassured that the other side would be cooperative in making the necessary concessions for such a settlement.[59]
A 2013 Gallup poll found 70% of Palestinians in the West Bank and 48% of Palestinians in Gaza Strip, together with 52% of Israelis supporting "an independent Palestinian state together with the state of Israel"
Hamas did offer to stop attacks on civilians if Israel would do the same shortly before taking over Gaza and the Israeli response was to assassinate the Hamas leader that made the offer
”According to Tristan Dunning, Israel has never responded to repeated offers by Hamas over subsequent years for a quid pro quo moratorium on attacks against civilians'.[137] It has engaged in several tadi'a (periods of calm), and proposed a number of ceasefires.[137] In January 2004, Hamas leader Ahmed Yassin, prior to his assassination, said that the group would end armed resistance against Israel for a 10-year hudna.[l] in exchange for a Palestinian state in the West Bank, Gaza Strip, and East Jerusalem, and that restoring Palestinians' "historical rights" (relating to the 1948 Palestinian expulsion and flight) "would be left for future generations". His views were quickly echoed by senior Hamas official Abdel Aziz al-Rantissi, who added that Hamas envisaged a "phased liberation".[139] Israel's response was to assassinate Yassin in March in a targeted Israeli air strike, and then al-Rantisi in a similar air strike in April.[140]”