All files / app/components ExplodingDateRange.tsx

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22                      2x     2x              
import React from 'react';
import { style } from 'app/styles';
 
import { ExplodingDate } from 'app/components/ExplodingDate';
 
export interface ExplodingDateRangeProps {
  startDate: number;
  endDate: number;
  style?: object | string;
}
 
export const ExplodingDateRange = (
  props: ExplodingDateRangeProps
): JSX.Element => {
  return (
    <div style={style(props.style)}>
      <ExplodingDate value={props.startDate} style={props.style} /> to{' '}
      <ExplodingDate value={props.endDate} style={props.style} />
    </div>
  );
};