import React from "react"; import { Row, Col, Form, Button } from "../external"; import DateTimeHelper from "../../utils/dateTimeHelper"; import { getHighlightedText } from "../../utils"; import { useNavigate } from "react-router-dom"; import { Tag } from "../../components"; export function Bookmark(props) { const navigate = useNavigate(); const getTruncatedDescription = () => `${props.bookmark.description.substring(0, 97)}${props.bookmark.description.length >= 97 ? "..." : ""}`; const getHighlightedTitle = () => getHighlightedText(props.bookmark.title, props.searchString); const getHighlightedDescription = () => getHighlightedText(getTruncatedDescription(), props.searchString) return