import { useNotesStore } from "../../store/notesStore"; import type { NoteIndexItem } from "../../api/notesApi"; import Button from "../ui/Button"; type SyncBadgeProps = { note?: NoteIndexItem; }; export default function SyncBadge({ note }: SyncBadgeProps) { if (!note) { return null; } if (note.sync.status !== "synced" && note.sync.status !== "syncing") { return null; } const statusLabel = note.sync.status === "synced" ? "Synced" : "Syncing"; return (