"use client"; import { useState, useEffect } from "react"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { TriangleAlert } from "lucide-react"; import { getCookie, setCookie } from "@/lib/cookies"; export const ContentWarningModal = () => { const [showWarning, setShowWarning] = useState(false); useEffect(() => { // Check if user has already acknowledged the warning const hasAcknowledged = getCookie('osborne-cwa') === 'true'; if (!hasAcknowledged) { setShowWarning(true); } }, []); const handleAcknowledge = () => { setCookie('osborne-cwa', 'true', 365); // 1 year setShowWarning(false); }; if (!showWarning) return null; return (
This is a public collaborative text editor.
Users can upload and share any type of content. We do not monitor, review, or control user-generated content and are not responsible for anything shared in these rooms.
Proceed at your own discretion and use appropriate judgment when viewing or sharing content.