{
setQueryToAdd(props.query);
}}
/>
),
});
}
}, [showQueryLibraryBadgeButton, setShowQueryLibraryBadgeButton]);
useKeyboardShortcuts();
return (
{showCorrelationEditorBar && }
size && updateSplitSize(size)}
>
{panes.map(([exploreId]) => {
return (
);
})}
{drawerOpened && (
{
setDrawerOpened(false);
}}
/>
)}
setQueryToAdd(undefined)}
>
{
setQueryToAdd(undefined);
}}
onSave={(isSuccess) => {
if (isSuccess) {
setQueryToAdd(undefined);
queryLibraryTrackAddFromQueryRow(queryToAdd?.datasource?.type || '');
}
}}
queryToAdd={queryToAdd!}
/>
);
}
const getStyles = (theme: GrafanaTheme2) => {
return {
pageScrollbarWrapper: css({
width: '100%',
flexGrow: 1,
minHeight: 0,
height: '100%',
position: 'relative',
overflow: 'hidden',
}),
correlationsEditorIndicator: css({
borderLeft: `4px solid ${theme.colors.primary.main}`,
borderRight: `4px solid ${theme.colors.primary.main}`,
borderBottom: `4px solid ${theme.colors.primary.main}`,
overflow: 'scroll',
}),
};
};