File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 11import AdSense from 'react-adsense'
22
33const Advertisement : React . FC < AdvertisementProps > = ( { size = 'short' } ) => {
4- return null
4+ return (
5+ < div className = 'py-5' >
6+ < div
7+ className = { `z-0 mx-auto w-full text-center text-white ${
8+ process . env . NODE_ENV === 'production' ? '' : 'bg-gray-700 py-12'
9+ } `}
10+ style = { size === 'short' ? { height : '90px' } : { height : '330px' } }
11+ >
12+ { process . env . NODE_ENV === 'production' ? (
13+ < AdSense . Google
14+ style = { {
15+ display : 'inline-block' ,
16+ width : '100%' ,
17+ height : size === 'short' ? '90px' : '330px' ,
18+ } }
19+ client = 'ca-pub-2090578791829639'
20+ slot = '3250141451'
21+ format = ''
22+ />
23+ ) : (
24+ 'Advertisement'
25+ ) }
26+ </ div >
27+ </ div >
28+ )
529}
630
731declare global {
You can’t perform that action at this time.
0 commit comments