⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
import { useState } from 'react';
export default function EditorLinkPreviewImage({ src }: { src: string }) {
const [failed, setFailed] = useState(false);
if (failed) return null;
return (
// Preview images are bounded raster data URLs returned by the API.
// eslint-disable-next-line @next/next/no-img-element
<img
src={src}
alt=""
referrerPolicy="no-referrer"
onError={() => setFailed(true)}
className="aspect-[1.91] w-full rounded-xl bg-muted object-cover outline -outline-offset-1 outline-black/10 dark:outline-white/10"
/>
);
}