12345678910111213141516171819202122 |
- 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!} />
- </>
- );
- };
|