diff --git a/apps/client/src/widgets/BreadcrumbBadges.tsx b/apps/client/src/widgets/BreadcrumbBadges.tsx index fdc94461b..f4f684c88 100644 --- a/apps/client/src/widgets/BreadcrumbBadges.tsx +++ b/apps/client/src/widgets/BreadcrumbBadges.tsx @@ -2,6 +2,7 @@ import "./BreadcrumbBadges.css"; import { ComponentChildren } from "preact"; import { useIsNoteReadOnly, useNoteContext } from "./react/hooks"; +import Icon from "./react/Icon"; export default function NoteBadges() { return ( @@ -17,15 +18,18 @@ function ReadOnlyBadge() { const isExplicitReadOnly = note?.isLabelTruthy("readOnly"); return (isReadOnly && - enableEditing()}> + enableEditing()}> {isExplicitReadOnly ? "Read-only" : "Auto read-only"} ); } -function Badge({ children, onClick }: { children: ComponentChildren, onClick?: () => void }) { +function Badge({ icon, children, onClick }: { icon: string, children: ComponentChildren, onClick?: () => void }) { return (
+   {children}
);