Custom File annotation for {file.newPath}
]} /> )) .add("Line Annotation", () => (Line Annotation
}; }} /> )) .add("OnClick", () => { const OnClickDemo = ({}) => { const [changeId, setChangeId] = useState(); useEffect(() => { const interval = setInterval(() => setChangeId(undefined), 2000); return () => clearInterval(interval); }); const onClick = (context: DiffEventContext) => setChangeId(context.changeId); return ( <> {changeId &&