import { ContentType } from '../Bookmarks'; import classes from './BookmarkTable.module.css'; import Table from '../../UI/Table/Table'; import { Bookmark, Category } from '../../../interfaces'; import Icon from '../../UI/Icons/Icon/Icon'; interface ComponentProps { contentType: ContentType; categories: Category[]; } const BookmarkTable = (props: ComponentProps): JSX.Element => { if (props.contentType === ContentType.category) { return (
{category.name} |
deleteAppHandler(app)}
// onKeyDown={(e) => keyboardActionHandler(e, app, deleteAppHandler)}
tabIndex={0}>
props.updateAppHandler(app)}
// onKeyDown={(e) => keyboardActionHandler(e, app, props.updateAppHandler)}
tabIndex={0}>
props.pinApp(app)}
// onKeyDown={(e) => keyboardActionHandler(e, app, props.pinApp)}
tabIndex={0}>
{category.isPinned
?
|
{bookmark.bookmark.name} | {bookmark.bookmark.url} | {bookmark.categoryName} |
deleteAppHandler(app)}
// onKeyDown={(e) => keyboardActionHandler(e, app, deleteAppHandler)}
tabIndex={0}>
props.updateAppHandler(app)}
// onKeyDown={(e) => keyboardActionHandler(e, app, props.updateAppHandler)}
tabIndex={0}>
|