Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
library-panels
/
File Content:
LibraryPanelsPage.tsx
import React, { useState } from 'react'; import { Page } from 'app/core/components/Page/Page'; import { LibraryPanelsSearch } from './components/LibraryPanelsSearch/LibraryPanelsSearch'; import { OpenLibraryPanelModal } from './components/OpenLibraryPanelModal/OpenLibraryPanelModal'; import { LibraryElementDTO } from './types'; export const LibraryPanelsPage = () => { const [selected, setSelected] = useState<LibraryElementDTO | undefined>(undefined); return ( <Page navId="dashboards/library-panels"> <Page.Contents> <LibraryPanelsSearch onClick={setSelected} showSecondaryActions showSort showPanelFilter showFolderFilter /> {selected ? <OpenLibraryPanelModal onDismiss={() => setSelected(undefined)} libraryPanel={selected} /> : null} </Page.Contents> </Page> ); }; export default LibraryPanelsPage;
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
components
---
0755
state
---
0755
utils
---
0755
LibraryPanelsPage.tsx
853 bytes
0644
guard.ts
249 bytes
0644
styles.ts
1363 bytes
0644
types.ts
1029 bytes
0644
utils.ts
1379 bytes
0644
N4ST4R_ID | Naxtarrr