import { useState } from "react"; export function Embed() { const [url, setUrl] = useState(""); // Initialize with an empty string const handleInputChange = (e: React.ChangeEvent) => { const value = (e.target as any).value; console.log("Input changed:", value); // Debugging log setUrl(value); if ( value.match( /^https?:\/\/rocksky\.app\/did:plc:[a-z2-7]{24}\/scrobble\/[a-z0-9]{13,}$/, ) ) { alert("ok"); } alert("z"); }; return (

Embed a Rocksky Scrobble

{/*