11import { useTranslation } from 'react-i18next'
22import { Alert , ButtonGroup , Col , Row } from '@iqss/dataverse-design-system'
3-
43import { CollectionRepository } from '../../collection/domain/repositories/CollectionRepository'
54import { useCollection } from './useCollection'
65import { useScrollTop } from '../../shared/hooks/useScrollTop'
@@ -14,6 +13,7 @@ import { CollectionSkeleton } from './CollectionSkeleton'
1413import { PageNotFound } from '../page-not-found/PageNotFound'
1514import { CreatedAlert } from './CreatedAlert'
1615import { PublishCollectionButton } from './publish-collection/PublishCollectionButton'
16+ import { ShareCollectionButton } from './share-collection-button/ShareCollectionButton'
1717import { EditCollectionDropdown } from './edit-collection-dropdown/EditCollectionDropdown'
1818import styles from './Collection.module.scss'
1919
@@ -81,19 +81,28 @@ export function Collection({
8181 { t ( 'publishedAlert' ) }
8282 </ Alert >
8383 ) }
84- { ( showPublishButton || showEditButton ) && (
85- < div className = { styles [ 'action-buttons' ] } >
86- < ButtonGroup >
87- { showPublishButton && (
88- < PublishCollectionButton
89- repository = { collectionRepository }
90- collectionId = { collection . id }
91- />
92- ) }
93- { showEditButton && < EditCollectionDropdown collection = { collection } /> }
94- </ ButtonGroup >
84+
85+ < div className = { styles [ 'metrics-actions-container' ] } >
86+ < div className = { styles . metrics } > </ div >
87+ < div className = { styles [ 'right-content' ] } >
88+ { /* 👇 Here should go Contact button also */ }
89+ { /* <ContactButton /> */ }
90+
91+ < ShareCollectionButton />
92+
93+ { ( showPublishButton || showEditButton ) && (
94+ < ButtonGroup >
95+ { showPublishButton && (
96+ < PublishCollectionButton
97+ repository = { collectionRepository }
98+ collectionId = { collection . id }
99+ />
100+ ) }
101+ { showEditButton && < EditCollectionDropdown collection = { collection } /> }
102+ </ ButtonGroup >
103+ ) }
95104 </ div >
96- ) }
105+ </ div >
97106
98107 < CollectionItemsPanel
99108 key = { collection . id }
0 commit comments