mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
24 lines
614 B
TypeScript
24 lines
614 B
TypeScript
import {DatePageFilter} from 'sentry/components/organizations/datePageFilter';
|
|
import {trackAnalytics} from 'sentry/utils/analytics';
|
|
import useOrganization from 'sentry/utils/useOrganization';
|
|
|
|
function StarfishDatePicker() {
|
|
const organization = useOrganization();
|
|
return (
|
|
<DatePageFilter
|
|
defaultPeriod="24h"
|
|
storageNamespace="starfish"
|
|
onChange={({start, end, relative}) => {
|
|
trackAnalytics('starfish.page_filter.data_change', {
|
|
organization,
|
|
start,
|
|
end,
|
|
relative,
|
|
});
|
|
}}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export default StarfishDatePicker;
|