make svg map into a component