'use client' import { useRef, useState } from 'react' import { cn } from '@/utils/cn' import { Button } from '../common/button' export function Embed(props: { className?: string src: string caption?: string tryButton?: string }) { const [isExampleFocused, setIsExampleFocused] = useState(false) const iframeRef = useRef(null) function handleClick() { setIsExampleFocused(true) iframeRef.current?.focus() } function handleBlur() { setIsExampleFocused(false) } return (