import { useContext } from "react"; import classNames from "classnames"; import { SettingsContext } from "utils/contexts/settings"; import ResolvedIcon from "components/resolvedicon"; export default function Item({ bookmark }) { const { hostname } = new URL(bookmark.href); const { settings } = useContext(SettingsContext); return (
  • {bookmark.icon &&
    } {!bookmark.icon && bookmark.abbr}
    {bookmark.name}
    {hostname}
  • ); }