import React, { useState } from "react";
import { Crown, Bookmark } from "lucide-react";
import CakeIcon from "@mui/icons-material/Cake";
import GroupsIcon from "@mui/icons-material/Groups";
import SchoolIcon from "@mui/icons-material/School";
import LocationOnIcon from "@mui/icons-material/LocationOn";
import AccessibilityNewIcon from "@mui/icons-material/AccessibilityNew";
import PersonIcon from "@mui/icons-material/Person";
import StarIcon from "@mui/icons-material/Star";
import VisibilityIcon from "@mui/icons-material/Visibility";
import PersonAddIcon from "@mui/icons-material/PersonAdd";
import { motion } from 'framer-motion';
import FilterModal from "../../feature/FilterModal";
// Profile Card Component
function ProfileCard({ profile }) {
const [isLiked, setIsLiked] = useState(false);
return (
Shortlist
{profile.name}
Matrimony ID: {profile.id}
{profile.community}
{profile.education}
{profile.location}
);
}
// Main Component
export default function MatchesInterface() {
const [selectedTab, setSelectedTab] = useState('your-matches');
const tabs = [
{
id: 'your-matches',
icon: ,
title: 'Your Matches',
description: 'View all the profiles that match your preferences',
category: 'All Matches'
},
{
id: 'shortlisted-by-you',
icon: ,
title: 'Shortlisted by you',
description: 'Matches you have shortlisted',
category: 'Based on activity'
},
{
id: 'viewed-you',
icon: ,
title: 'Viewed you',
description: 'Matches who have viewed your profile',
category: 'Based on activity'
},
{
id: 'shortlisted-you',
icon: ,
title: 'Shortlisted you',
description: 'Matches who have shortlisted your profile',
category: 'Based on activity'
},
{
id: 'viewed-by-you',
icon: ,
title: 'Viewed by you',
description: 'Matches you have viewed',
category: 'Based on activity'
}
];
const profiles = [
{
id: 'JB2847593',
name: 'Jerome Bell',
age: 22,
height: '5.2',
community: 'Hindu / Agamudiyar/thular',
education: 'BCA / Data analyst',
location: 'Chennai',
image: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=600&h=800&fit=crop&crop=faces,top'
},
{
id: 'SA8392847',
name: 'Sarah Anderson',
age: 24,
height: '5.4',
community: 'Hindu / Iyer',
education: 'MBA / Marketing Manager',
location: 'Bangalore',
image: 'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=600&h=800&fit=crop&crop=faces,top'
},
{
id: 'PR9384756',
name: 'Priya Reddy',
age: 23,
height: '5.3',
community: 'Hindu / Reddy',
education: 'B.Tech / Software Engineer',
location: 'Hyderabad',
image: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=600&h=800&fit=crop&crop=faces,top'
},
{
id: 'AN4758392',
name: 'Ananya Krishnan',
age: 25,
height: '5.5',
community: 'Hindu / Nair',
education: 'MD / Doctor',
location: 'Kochi',
image: 'https://images.unsplash.com/photo-1488426862026-3ee34a7d66df?w=600&h=800&fit=crop&crop=faces,top'
}
];
let currentCategory = '';
return (
{/* Left Sidebar - Fixed on desktop, scrollable on mobile */}
{tabs.map((tab) => {
const showCategory = tab.category !== currentCategory;
if (showCategory) {
currentCategory = tab.category;
}
return (
{showCategory && (
{tab.category}
)}
setSelectedTab(tab.id)}
className={`p-4 rounded-lg mb-3 cursor-pointer transition-all ${
selectedTab === tab.id
? 'bg-green-50 border-l-4 border-green-600'
: 'hover:bg-gray-50'
}`}
>
);
})}
{/* Right Content Area - Scrollable */}
{tabs.find(t => t.id === selectedTab)?.title}
{profiles.map((profile) => (
))}
);
}