import React, { useState } from 'react'; import { Button } from '../ui'; import { useLocation, useNavigate } from 'react-router-dom'; export default function FilesSectionSelector() { const navigate = useNavigate(); const location = useLocation(); let selectedPage = '/vector-stores'; if (location.pathname.includes('vector-stores')) { selectedPage = '/vector-stores'; } if (location.pathname.includes('files')) { selectedPage = '/files'; } const darkButton = { backgroundColor: 'black', color: 'white' }; const lightButton = { backgroundColor: '#f9f9f9', color: 'black' }; return (