import React, { useState } from 'react'; import Modal from './ui/Modal'; const DISMISS_KEY = 'os_watermark_notice_dismissed'; // eslint-disable-next-line react-refresh/only-export-components export function watermarkNoticeDismissed() { try { return localStorage.getItem(DISMISS_KEY) === '1'; } catch { return false; } } // Shown to free users before their first download: the clip carries a // watermark, and upgrading removes it. Dismissible for good, like OpusClip's. export default function WatermarkModal({ onClose, onContinue }) { const [dontShow, setDontShow] = useState(false); const close = (proceed) => { if (dontShow) { try { localStorage.setItem(DISMISS_KEY, '1'); } catch { /* ignore */ } } if (proceed) onContinue?.(); onClose(); }; return ( close(false)} eyebrow="FREE PLAN" title="Upgrade to remove the watermark" size="md">

Clips on the free plan carry the OpenShorts mark in the corner, and are kept for 7 days. Any paid plan exports them clean and keeps them for good.

); }