import React from 'react'; import { PixelData } from '../types'; import { Card, CardContent } from '@/components/ui/card'; import { MousePointer2 } from 'lucide-react'; interface PixelInspectorProps { pixel: PixelData; } export function PixelInspector({ pixel }: PixelInspectorProps) { const hasData = pixel.x !== null && pixel.y !== null && pixel.value !== null; return (
Pixel Inspector
{hasData ? (
X Coordinate {pixel.x}
Y Coordinate {pixel.y}
Value (K) {pixel.value?.toFixed(2)}
) : ( Hover over the image to inspect pixel values. )}
); }