import React from 'react';
import { getDateRange } from 'lib/date';
import DropDown from './DropDown';
import { FormattedMessage } from 'react-intl';
const filterOptions = [
{
label: (
),
value: '24hour',
},
{
label: (
),
value: '7day',
},
{
label: (
),
value: '30day',
},
{
label: (
),
value: '90day',
},
{ label: , value: '1day' },
{ label: , value: '1week' },
{
label: ,
value: '1month',
},
{ label: , value: '1year' },
];
export default function DateFilter({ value, onChange, className }) {
function handleChange(value) {
onChange(getDateRange(value));
}
return (
);
}