2025-03-25 06:17:41 +00:00
|
|
|
import React from "react";
|
|
|
|
import { EyeDroperIcon } from "../../icons/ExportCommonIcons";
|
|
|
|
|
2025-03-29 07:28:54 +00:00
|
|
|
interface EyeDropInputProps {
|
|
|
|
label: string;
|
|
|
|
value: string;
|
|
|
|
onChange: (value: string) => void;
|
|
|
|
options?: string[];
|
|
|
|
}
|
|
|
|
|
|
|
|
const EyeDropInput: React.FC<EyeDropInputProps> = ({
|
|
|
|
label = "Object",
|
|
|
|
onChange,
|
|
|
|
}) => {
|
|
|
|
const handleEyeDropClick = () => {
|
|
|
|
// Here you would typically implement the eye dropper functionality
|
|
|
|
// For now, we'll just simulate selecting a value
|
|
|
|
const simulatedValue = "picked_value"; // Replace with actual eye dropper logic
|
|
|
|
onChange(simulatedValue);
|
|
|
|
};
|
|
|
|
|
2025-03-25 06:17:41 +00:00
|
|
|
return (
|
|
|
|
<div className="eye-dropper-input-container">
|
2025-03-29 07:28:54 +00:00
|
|
|
<div className="label">{label}</div>
|
2025-03-25 06:17:41 +00:00
|
|
|
<div className="input-container">
|
2025-03-29 07:28:54 +00:00
|
|
|
<input disabled type="text" />
|
|
|
|
<div className="eye-picker-button" onClick={handleEyeDropClick}>
|
2025-03-25 06:17:41 +00:00
|
|
|
<EyeDroperIcon isActive={false} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2025-03-29 07:28:54 +00:00
|
|
|
export default EyeDropInput;
|