"use client"; import React from "react"; import { Card, CardContent } from "@/components/ui/card"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Heart, MessageCircle, Repeat2, Share, MoreHorizontal, ExternalLink, Calendar, MapPin, ThumbsUp, Send, } from "lucide-react"; import { cn } from "@/lib/utils"; export interface LinkedInPostProps { title: string; content: string; className?: string; } export function LinkedInPost({ title, content, className }: LinkedInPostProps) { const formatNumber = (num: number): string => { if (num >= 1000000) { return (num / 1000000).toFixed(1) + "M"; } else if (num >= 1000) { return (num / 1000).toFixed(1) + "K"; } return num.toString(); }; // Default values for demo purposes const defaultAuthor = { name: "DeepMind Research", title: "AI Research Scientist", company: "Google DeepMind", avatar: "/placeholder-user.jpg", verified: true, }; const defaultTimestamp = "2h"; const defaultLocation = "London, UK"; const defaultLikes = 1247; const defaultComments = 89; const defaultShares = 23; const defaultViews = 45600; return ( {/* Header */}
{defaultAuthor.name.charAt(0)}
{defaultAuthor.name} {defaultAuthor.verified && (
)}
{defaultAuthor.title}
{defaultAuthor.company}
{defaultTimestamp}
{defaultLocation}
{/* Title */}

{title}

{/* Content */}

{content}

{/* Engagement Stats */}
+
{formatNumber(defaultLikes)}
{formatNumber(defaultComments)} comments {formatNumber(defaultShares)} shares
{/* Action Bar */}
); } // LinkedIn Logo Component export function LinkedInLogo({ className }: { className?: string }) { return (
LinkedIn
); } // LinkedIn Post Preview Component (for the canvas) export function LinkedInPostPreview({ title, content, }: { title: string; content: string; }) { return (
Preview
); } // Compact LinkedIn Post Component (for chat UI) export function LinkedInPostCompact({ title, content, className, }: LinkedInPostProps) { const formatNumber = (num: number): string => { if (num >= 1000000) { return (num / 1000000).toFixed(1) + "M"; } else if (num >= 1000) { return (num / 1000).toFixed(1) + "K"; } return num.toString(); }; // Default values for demo purposes const defaultAuthor = { name: "DeepMind Research", title: "AI Research Scientist", company: "Google DeepMind", avatar: "/placeholder-user.jpg", verified: true, }; const defaultTimestamp = "2h"; const defaultLocation = "London, UK"; const defaultLikes = 1247; const defaultComments = 89; const defaultShares = 23; const defaultViews = 45600; return ( {/* Compact Indicator */} {/*
[Compact Version]
*/} {/* Header */}
{defaultAuthor.name.charAt(0)}
{defaultAuthor.name} {defaultAuthor.verified && (
)}
{defaultAuthor.title}
{defaultAuthor.company}
{defaultTimestamp}
{defaultLocation}
{/* Title */}

{title}

{/* Content */}

{content}

{/* Engagement Stats */}
+
{formatNumber(defaultLikes)}
{formatNumber(defaultComments)} comments {formatNumber(defaultShares)} shares
{/* Action Bar */}
); }