diff --git a/src/components/HighlightItem.tsx b/src/components/HighlightItem.tsx index 8feaeee2..206c1b82 100644 --- a/src/components/HighlightItem.tsx +++ b/src/components/HighlightItem.tsx @@ -4,8 +4,12 @@ import { faQuoteLeft, faLink, faExternalLinkAlt } from '@fortawesome/free-solid- import { Highlight } from '../types/highlights' import { formatDistanceToNow } from 'date-fns' +interface HighlightWithLevel extends Highlight { + level?: 'mine' | 'friends' | 'nostrverse' +} + interface HighlightItemProps { - highlight: Highlight + highlight: HighlightWithLevel onSelectUrl?: (url: string) => void isSelected?: boolean onHighlightClick?: (highlightId: string) => void @@ -45,7 +49,7 @@ export const HighlightItem: React.FC = ({ highlight, onSelec return (