19 lines
555 B
TypeScript
19 lines
555 B
TypeScript
import type { ReactNode } from 'react';
|
|
|
|
interface ProfileHoverCardProps {
|
|
pubkey: string;
|
|
asChild?: boolean;
|
|
children: ReactNode;
|
|
}
|
|
|
|
/**
|
|
* Minimal profile hover card — a passthrough wrapper.
|
|
*
|
|
* Ditto's richer `ProfileHoverCard` shows an avatar, display name,
|
|
* bio, follower count, and follow button on hover. To replicate,
|
|
* wrap with `@/components/ui/hover-card` and pull metadata via
|
|
* `useAuthor(pubkey)` inside the hover content.
|
|
*/
|
|
export function ProfileHoverCard({ children }: ProfileHoverCardProps) {
|
|
return <>{children}</>;
|
|
}
|