import React, { useState } from 'react';
import { BugAntIcon } from '@heroicons/react/24/outline';
import DebugOverlay from './DebugOverlay';
const DebugToggle = () => {
const [isDebugOpen, setIsDebugOpen] = useState(false);
// Only show in development or when debug is enabled
const shouldShow = import.meta.env.DEV ||
import.meta.env.VITE_DEBUG_ENABLED === 'true';
if (!shouldShow) return null;
return (
<>
{/* Floating Debug Button */}
{/* Debug Overlay */}
setIsDebugOpen(false)}
/>
>
);
};
export default DebugToggle;