Page component updated + ts

This commit is contained in:
tmshv committed 2019-10-17 12:55:28 +03:00
1 parent 8163c35efe
commit 0e7b312d97
3 files changed
+23 -21

No files matched your search

-19
View File
@@ -1,19 +0,0 @@
import React from 'react'
import Share from './Share'
import Html from './Html'
export default function Page({ children, shareable }) {
return (
<div className={'Article Article--cloud'}>
<div className={'Article-Body'}>
<Html
html={children}
/>
</div>
{!shareable ? null : (
<Share />
)}
</div>
)
}
+21
View File
@@ -0,0 +1,21 @@
import * as React from 'react'
import Share from '../Share'
import Html from '../Html'
export interface IPageProps {
showSocialShare: boolean
}
export const Page: React.FC<IPageProps> = props => (
<div className={'Article Article--cloud'}>
<div className={'Article-Body'}>
<Html
html={props.children}
/>
</div>
{!props.showSocialShare ? null : (
<Share />
)}
</div>
)