mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
chore: remove ad
This commit is contained in:
parent
690febf168
commit
b1dfb1b834
@ -1,31 +1,7 @@
|
|||||||
import AdSense from 'react-adsense'
|
import AdSense from 'react-adsense'
|
||||||
|
|
||||||
const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
|
const Advertisement: React.FC<AdvertisementProps> = ({ size = 'short' }) => {
|
||||||
return (
|
return null
|
||||||
<div className='py-5'>
|
|
||||||
<div
|
|
||||||
className={`z-0 mx-auto w-full text-center text-white ${
|
|
||||||
process.env.NODE_ENV === 'production' ? '' : 'bg-gray-700 py-12'
|
|
||||||
}`}
|
|
||||||
style={size === 'short' ? { height: '90px' } : { height: '330px' }}
|
|
||||||
>
|
|
||||||
{process.env.NODE_ENV === 'production' ? (
|
|
||||||
<AdSense.Google
|
|
||||||
style={{
|
|
||||||
display: 'inline-block',
|
|
||||||
width: '100%',
|
|
||||||
height: size === 'short' ? '90px' : '330px',
|
|
||||||
}}
|
|
||||||
client='ca-pub-4856582423981759'
|
|
||||||
slot='3250141451'
|
|
||||||
format=''
|
|
||||||
/>
|
|
||||||
) : (
|
|
||||||
'Advertisement'
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user