ShareLibraryPanel.tsx 607 B

12345678910111213141516171819202122
  1. import React from 'react';
  2. import { AddLibraryPanelContents } from 'app/features/library-panels/components/AddLibraryPanelModal/AddLibraryPanelModal';
  3. import { ShareModalTabProps } from './types';
  4. interface Props extends ShareModalTabProps {
  5. initialFolderId?: number;
  6. }
  7. export const ShareLibraryPanel = ({ panel, initialFolderId, onDismiss }: Props) => {
  8. if (!panel) {
  9. return null;
  10. }
  11. return (
  12. <>
  13. <p className="share-modal-info-text">Create library panel.</p>
  14. <AddLibraryPanelContents panel={panel} initialFolderId={initialFolderId} onDismiss={onDismiss!} />
  15. </>
  16. );
  17. };