import React, { useState } from 'react'; import { Plus, FolderPlus } from 'lucide-react'; // import { Link } from 'react-router-dom'; import { mockFeatureGroups } from '../mockData'; import { FeatureCard } from '../components/features/FeatureCard'; import { FeatureGroupCard } from '../components/features/FeatureGroupCard'; import { EmptyState } from '../components/EmptyState'; export default function FeaturesPage() { const [view, setView] = useState<'groups' | 'all'>('groups'); if (mockFeatureGroups.length === 0) { return (
{/* Handle group creation */}} />
); } const allFeatures = mockFeatureGroups.flatMap(g => g.features); return (

Features

New Group New Feature
{view === 'groups' ? (
{mockFeatureGroups.map((group) => ( ))}
) : (
{allFeatures.map((feature) => ( g.id === feature.groupId)!} /> ))}
)}
); }