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