mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
- Remove 'use client' from connector-document-mapping.ts (only exports constants and pure functions) - Remove 'use client' from sidebar-separator.tsx (purely presentational component) - Remove 'use client' and Framer Motion from logs/loading.tsx, replace with Tailwind animations - Reduces client bundle size by moving server-compatible code to server components
10 lines
280 B
TypeScript
10 lines
280 B
TypeScript
import type { Separator } from "fumadocs-core/page-tree";
|
|
|
|
export function SidebarSeparator({ item }: { item: Separator }) {
|
|
return (
|
|
<p className="inline-flex items-center gap-2 mb-1.5 px-2 mt-6 font-semibold first:mt-0 empty:mb-0">
|
|
{item.icon}
|
|
{item.name}
|
|
</p>
|
|
);
|
|
}
|