import { ExactSecondsRange } from '../types';

export const shiftExactSecondsRange = (
  range: ExactSecondsRange,
  shiftBySeconds: number
): ExactSecondsRange => {
  return {
    type: 'exact-seconds-range',
    startSeconds: range.startSeconds + shiftBySeconds,
    endSeconds: range.endSeconds + shiftBySeconds,
  };
};
