'use client' import type { ReactNode } from 'react' import { toast } from 'sonner' import { PlatformAdClose } from './PlatformAdClose' import { PlatformAdDescription } from './PlatformAdDescription' import { PlatformAdIcon } from './PlatformAdIcon' import { PlatformAdLink } from './PlatformAdLink' import { PlatformAdRoot } from './PlatformAdRoot' export type PlatformAdProps = { description: ReactNode icon?: PlatformAdIcon | undefined link: { href: string text: string } toastId?: string | number } const PlatformAd = ({ description, icon = 'product', link, toastId, }: PlatformAdProps & { toastId: string | number }) => (
{description}
) export function platformAd(props: PlatformAdProps) { toast.custom((toastId) => , { position: 'bottom-left', duration: Infinity, }) }