splliting a linestring into multiple line with turf

I have a linestring and I'm trying to split that linestring by a layer of points, to get the different chunk (path), and I also want to get only the chunk where a specific point (clicked on map) belongs. anyway using turf.js and mapbox ? see picture below, I click on the segment, but it's select all the line (in yellow) I want only to get the segment where my mouse is see picture below here is a screenshot

I tried using turf.linseSplit to split a linestring by a feature collection, but it's not working properly