import React, { useState } from 'react'; import { motion } from 'framer-motion'; import { Link2, Check, X, ExternalLink, Settings, RefreshCw, Shield, Key, AlertCircle, CheckCircle, Linkedin, Palette, Zap, ArrowRight, Info, Save } from 'lucide-react'; import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; import { Switch } from '@/components/ui/switch'; import { Label } from '@/components/ui/label'; import { Input } from '@/components/ui/input'; import { Separator } from '@/components/ui/separator'; import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger, DialogDescription, } from '@/components/ui/dialog'; import { Alert, AlertDescription, AlertTitle, } from '@/components/ui/alert'; const integrations = [ { id: 'linkedin', name: 'LinkedIn', description: 'Connect your LinkedIn account to schedule and publish posts directly', icon: Linkedin, color: 'blue', bgColor: 'bg-[#0A66C2]', connected: true, account: 'alex.business@company.com', lastSync: '2 mins ago', features: [ 'Schedule posts up to 60 days in advance', 'Publish carousel, image, and text posts', 'Track post performance analytics', 'Manage multiple company pages' ] }, { id: 'canva', name: 'Canva', description: 'Import designs directly from your Canva workspace for post visuals', icon: Palette, color: 'purple', bgColor: 'bg-gradient-to-br from-[#00C4CC] to-[#7B2FF7]', connected: false, account: null, lastSync: null, features: [ 'Browse and import Canva designs', 'Access brand kit assets', 'Import templates for carousels', 'Sync design updates automatically' ] }, ]; export default function Integrations() { const [linkedInDialogOpen, setLinkedInDialogOpen] = useState(false); const [canvaDialogOpen, setCanvaDialogOpen] = useState(false); const [autoPost, setAutoPost] = useState(true); const [notifications, setNotifications] = useState(true); return (
Connect your tools to streamline your content workflow
{integration.description}
{integration.connected && (Features
You'll be redirected to {integration.name} to authorize