mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* scaffold new browse routes * a part of rtk query * load nested data * . * link nested dashboards items * add comment about bad code, update codeowners * tidies
40 lines
998 B
TypeScript
40 lines
998 B
TypeScript
import React, { useMemo } from 'react';
|
|
|
|
import { Input } from '@grafana/ui';
|
|
import { ActionRow } from 'app/features/search/page/components/ActionRow';
|
|
import { SearchLayout } from 'app/features/search/types';
|
|
|
|
export function BrowseActions() {
|
|
const fakeState = useMemo(() => {
|
|
return {
|
|
query: '',
|
|
tag: [],
|
|
starred: false,
|
|
layout: SearchLayout.Folders,
|
|
eventTrackingNamespace: 'manage_dashboards' as const,
|
|
};
|
|
}, []);
|
|
|
|
return (
|
|
<div>
|
|
<Input placeholder="Search box" />
|
|
|
|
<br />
|
|
|
|
<ActionRow
|
|
includePanels={false}
|
|
state={fakeState}
|
|
getTagOptions={() => Promise.resolve([])}
|
|
getSortOptions={() => Promise.resolve([])}
|
|
onLayoutChange={() => {}}
|
|
onSortChange={() => {}}
|
|
onStarredFilterChange={() => {}}
|
|
onTagFilterChange={() => {}}
|
|
onDatasourceChange={() => {}}
|
|
onPanelTypeChange={() => {}}
|
|
onSetIncludePanels={() => {}}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|