import * as React from "react"; import "../style/quickItem.scss"; import { Bookmark } from "../types/Bookmarks"; interface Props { bookmark: Bookmark; } class QuickItem extends React.Component { constructor(props) { super(props); } onClick() { window.location.href = this.props.bookmark.url; } render(): JSX.Element { return
this.onClick()}> {this.props.bookmark.name}
; } } export default QuickItem;