File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Expand file tree Collapse file tree 1 file changed +1
-25
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 (
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-4856582423981759'
20- slot = '3250141451'
21- format = ''
22- />
23- ) : (
24- 'Advertisement'
25- ) }
26- </ div >
27- </ div >
28- )
4+ return null
295}
306
317declare global {
You can’t perform that action at this time.
0 commit comments