chore: remove ad

This commit is contained in:
skinmaker1345 2025-01-18 23:13:25 +09:00
parent 690febf168
commit b1dfb1b834

View File

@ -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 {