1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
605 B

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