SurfSense/surfsense_web/components/public-chat-snapshots/public-chat-snapshots-empty-state.tsx
likiosliu 3d762ccf62 fix: remove unnecessary "use client" from pure presentational components
These components only render JSX with props and don't use hooks,
event handlers, or browser APIs.
2026-03-26 11:50:39 +08:00

21 lines
714 B
TypeScript

import { Link2Off } from "lucide-react";
interface PublicChatSnapshotsEmptyStateProps {
title?: string;
description?: string;
}
export function PublicChatSnapshotsEmptyState({
title = "No public chat links",
description = "When you create public links to share chats, they will appear here.",
}: PublicChatSnapshotsEmptyStateProps) {
return (
<div className="flex flex-col items-center justify-center py-12 text-center">
<div className="rounded-full bg-muted p-3 mb-4">
<Link2Off className="h-6 w-6 text-muted-foreground" />
</div>
<h3 className="text-sm font-medium text-foreground mb-1">{title}</h3>
<p className="text-xs text-muted-foreground max-w-sm">{description}</p>
</div>
);
}