import classNames from "classnames"; import { Link } from "react-router-dom"; import { Shortcut } from "@/types/proto/api/v1/shortcut_service"; import Icon from "./Icon"; import LinkFavicon from "./LinkFavicon"; import ShortcutActionsDropdown from "./ShortcutActionsDropdown"; interface Props { shortcut: Shortcut; className?: string; showActions?: boolean; alwaysShowLink?: boolean; onClick?: () => void; } const ShortcutView = (props: Props) => { const { shortcut, className, showActions, alwaysShowLink, onClick } = props; return (
{shortcut.title ? ( <> {shortcut.title} ({shortcut.name}) ) : ( <> {shortcut.name} )}
e.stopPropagation()} > {showActions && (
e.stopPropagation()}>
)}
); }; export default ShortcutView;