import { css } from '@emotion/css'; import React from 'react'; import { GrafanaTheme2 } from '@grafana/data'; import { Dropdown, FilterInput, Icon, Menu, MenuItem, Tooltip, useStyles2 } from '@grafana/ui'; import { contextSrv } from 'app/core/core'; import { TOP_BAR_LEVEL_HEIGHT } from './types'; export function TopSearchBar() { const styles = useStyles2(getStyles); return (
{}} className={styles.searchInput} />
); } /** * This is just temporary, needs syncing with the backend option like DisableSignoutMenu */ export function ProfileMenu() { return ( ); } const getStyles = (theme: GrafanaTheme2) => { return { container: css({ height: TOP_BAR_LEVEL_HEIGHT, display: 'grid', gridTemplateColumns: '1fr 2fr 1fr', padding: theme.spacing(0, 2), alignItems: 'center', border: `1px solid ${theme.colors.border.weak}`, }), leftContent: css({ display: 'flex', }), logo: css({ display: 'flex', }), searchWrapper: css({}), searchInput: css({}), actions: css({ display: 'flex', gap: theme.spacing(1), justifyContent: 'flex-end', }), actionItem: css({ display: 'flex', flexGrow: 0, border: 'none', boxShadow: 'none', background: 'none', alignItems: 'center', color: theme.colors.text.secondary, '&:hover': { background: theme.colors.background.secondary, }, img: { borderRadius: '50%', width: '24px', height: '24px', }, }), }; };