import { NotificationFeed } from "sendify";
import { sendify } from "sendify";
const TestingPage = () => {
const sendTestNotification = async () => {
await sendify.sendNotifications(
["[email protected]"], // Hardcoded test user
"🚀 This is a test notification!", // Content
"Check it out", // Button text (optional)
"https://yourapp.com/test" // Button URL (optional)
);
};
return (
<div className="flex flex-col items-center justify-center h-screen gap-4">
<NotificationFeed userId="[email protected]" />
<button
onClick={sendTestNotification}
className="px-4 py-2 bg-blue-500 text-white rounded-md hover:bg-blue-600"
>
Send Test Notification
</button>
</div>
);
};
export default TestingPage;