Spaces:
Runtime error
Runtime error
File size: 496 Bytes
8e20687 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
interface Props {
apiKey: string;
onChange: (apiKey: string) => void;
}
export const APIKeyInput: React.FC<Props> = ({ apiKey, onChange }) => {
return (
<input
className="mt-1 h-[24px] w-[280px] rounded-md border border-gray-300 px-3 py-2 text-black shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"
type="password"
placeholder="OpenAI API Key"
value={apiKey}
onChange={(e) => onChange(e.target.value)}
/>
);
};
|