Files
grafana/public/app/features/browse-dashboards/components/BrowseActions.tsx
Josh Hunt 5df33c0dc1 NestedFolders: New Browse Dashboards views (#66003)
* scaffold new browse routes

* a part of rtk query

* load nested data

* .

* link nested dashboards items

* add comment about bad code, update codeowners

* tidies
2023-04-12 10:44:01 +01:00

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>
);
}