import React from 'react' import { Badge } from 'react-bootstrap' import { Link } from 'react-router-dom' import { formatHistoryDate } from '../utils' import { EntryMenu } from '../entry-menu/entry-menu' import { PinButton } from '../pin-button/pin-button' import { HistoryEntryProps } from '../history-content/history-content' export const HistoryTableRow: React.FC = ({ entry, onPinClick, onRemoveClick, onDeleteClick }) => { return ( {entry.title} {formatHistoryDate(entry.lastVisited)} { entry.tags.map((tag) => {tag}) } onPinClick(entry.id, entry.location)} className={'mb-1 mr-1'}/> onRemoveClick(entry.id, entry.location)} onDelete={() => onDeleteClick(entry.id, entry.location)} /> ) }