import React from 'react';
import { Outlet, useNavigate } from 'react-router-dom';
import CardList from './CardList'; // Import the CardList component

const Setup = () => {
  const navigate = useNavigate();

  return (
    <div style={{ padding: '20px' }}>
     
      {/* Show CardList when at /dashboard/setup */}
      {window.location.pathname === '/dashboard/setup' ? (
        <CardList />
      ) : (
        <Outlet />
      )}
    </div>
  );
};

export default Setup;