The 31-year-old, from Dalkeith, was arrested after the theft from Somerfield on High Street, Bonnyrigg, at 12:15pm on Thursday.