⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.72
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
explore
/
View File Name :
SecondaryActions.tsx
import { css } from '@emotion/css'; import React from 'react'; import { GrafanaTheme2 } from '@grafana/data'; import { Components } from '@grafana/e2e-selectors'; import { ToolbarButton, useTheme2 } from '@grafana/ui'; import { t, Trans } from 'app/core/internationalization'; type Props = { addQueryRowButtonDisabled?: boolean; addQueryRowButtonHidden?: boolean; richHistoryRowButtonHidden?: boolean; richHistoryButtonActive?: boolean; queryInspectorButtonActive?: boolean; onClickAddQueryRowButton: () => void; onClickRichHistoryButton: () => void; onClickQueryInspectorButton: () => void; }; const getStyles = (theme: GrafanaTheme2) => { return { containerMargin: css({ display: 'flex', flexWrap: 'wrap', gap: theme.spacing(1), marginTop: theme.spacing(2), }), }; }; export function SecondaryActions(props: Props) { const theme = useTheme2(); const styles = getStyles(theme); return (
{!props.addQueryRowButtonHidden && (
Add query
)} {!props.richHistoryRowButtonHidden && (
Query history
)}
Query inspector
); }