@@ -4,7 +4,8 @@ import { Galleries } from '@prezly/theme-kit-nextjs';
44
55import { ContentRenderer } from '@/components/ContentRenderer' ;
66import { PageTitle } from '@/components/PageTitle' ;
7- import { StoryLinks } from '@/components/StoryLinks' ;
7+ import { SocialShare } from '@/components/SocialShare' ;
8+ import type { SocialNetwork } from 'theme-settings' ;
89
910import { DownloadLink } from './DownloadLink' ;
1011
@@ -14,10 +15,10 @@ interface Props {
1415 localeCode : Locale . Code ;
1516 gallery : NewsroomGallery ;
1617 href : string ;
17- withSharingIcons : boolean ;
18+ socialNetworks : SocialNetwork [ ] ;
1819}
1920
20- export function Gallery ( { localeCode, gallery, href, withSharingIcons } : Props ) {
21+ export function Gallery ( { localeCode, gallery, href, socialNetworks } : Props ) {
2122 const { name, description, content } = gallery ;
2223
2324 const downloadUrl =
@@ -30,7 +31,13 @@ export function Gallery({ localeCode, gallery, href, withSharingIcons }: Props)
3031
3132 < div className = { styles . links } >
3233 { downloadUrl && < DownloadLink localeCode = { localeCode } href = { downloadUrl } /> }
33- { withSharingIcons && < StoryLinks url = { href } className = { styles . shareLinks } /> }
34+ { socialNetworks . length > 0 && href && (
35+ < SocialShare
36+ socialNetworks = { socialNetworks }
37+ url = { href }
38+ className = { styles . shareLinks }
39+ />
40+ ) }
3441 </ div >
3542
3643 < ContentRenderer nodes = { JSON . parse ( content ) } />
0 commit comments