mirror of https://github.com/grafana/grafana.git
21 lines
605 B
TypeScript
21 lines
605 B
TypeScript
import React from 'react';
|
|
import { AddLibraryPanelContents } from 'app/features/library-panels/components/AddLibraryPanelModal/AddLibraryPanelModal';
|
|
import { ShareModalTabProps } from './types';
|
|
|
|
interface Props extends ShareModalTabProps {
|
|
initialFolderId?: number;
|
|
}
|
|
|
|
export const ShareLibraryPanel = ({ panel, initialFolderId, onDismiss }: Props) => {
|
|
if (!panel) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<>
|
|
<p className="share-modal-info-text">Create library panel.</p>
|
|
<AddLibraryPanelContents panel={panel} initialFolderId={initialFolderId} onDismiss={onDismiss!} />
|
|
</>
|
|
);
|
|
};
|