A family-run store in a popular UK seaside town is closing after 22 years, with Greggs set to take over the site.