Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getSnipForRow(
snipPosition,
row,
sequenceLength,
bpsPerRow,
snipStyle,
charWidth,
index
) {
if (!isPositionWithinRange(snipPosition, row)) return;
let { xStart } = getXStartAndWidthOfRangeWrtRow(
{ start: snipPosition, end: snipPosition },
row,
bpsPerRow,
charWidth,
sequenceLength
);
let newCursorStyle = assign({}, snipStyle, {
left: xStart + 2
});
let cursorEl = (
<div style="{newCursorStyle}">
);
return cursorEl;
}</div>