36 lines
918 B
TypeScript
Raw Normal View History

import './QueryAggregation.styles.scss';
import InputWithLabel from 'components/InputWithLabel/InputWithLabel';
import QueryAggregationSelect from './QueryAggregationSelect';
2025-05-14 16:16:34 +05:30
function QueryAggregationOptions({
onAggregationOptionsSelect,
}: {
onAggregationOptionsSelect: (value: { func: string; arg: string }[]) => void;
}): JSX.Element {
return (
<div className="query-aggregation-container">
2025-05-14 16:16:34 +05:30
<QueryAggregationSelect
onAggregationOptionsSelect={onAggregationOptionsSelect}
/>
<div className="query-aggregation-interval">
<div className="query-aggregation-interval-label">every</div>
<div className="query-aggregation-interval-input-container">
<InputWithLabel
initialValue="60"
label="Seconds"
placeholder="60"
type="number"
labelAfter
onClose={(): void => {}}
/>
</div>
</div>
</div>
);
}
export default QueryAggregationOptions;