Before Brexit, trade between Northern Ireland and the Republic of Ireland took place with few restrictions as both territories belonged to the European common market and followed the same rules.