"use client"; import Image from "next/image"; import { useEffect, useState } from "react"; export default function SlackNotification({ shouldNotify, onClick, }: { shouldNotify: boolean; onClick: () => void; }) { const [isOpen, setIsOpen] = useState(false); const handleClick = async () => { setIsOpen(false); if (onClick) { onClick(); } }; useEffect(() => { if (shouldNotify) { setIsOpen(true); } }, [shouldNotify]); return ( <>
Slack Logo

New message in: #coach-gtm

{`@CoachGTM: Your meeting prep for Pied Piper < > WindFlow Dynamics is ready! Meeting starts in 30 minutes`}
); }