import { describe, expect, it, vi } from "vitest";
import { renderWithProviders } from "../utils/testHelpers";
import { TabloNotesSection } from "./TabloNotesSection";

vi.mock("../hooks/notes", () => ({
  useTabloNotes: () => ({
    notes: [],
    isLoading: false,
  }),
}));

describe("TabloNotesSection", () => {
  const mockTablo = {
    id: "test-tablo-id",
    name: "Test Tablo",
    color: "bg-blue-500",
    user_id: "test-user-id",
    access_level: "admin",
    is_admin: true,
    created_at: "2024-01-01T00:00:00Z",
    deleted_at: "2024-01-01T00:00:00Z",
    position: 0,
    status: "active",
    image: null,
  };

  it("renders without crashing", () => {
    const { container } = renderWithProviders(
      <TabloNotesSection tablo={mockTablo} isAdmin={true} />
    );
    expect(container).toBeInTheDocument();
  });
});
