This commit is contained in:
zramsay
2025-05-05 17:52:02 -04:00
parent f95bde74f7
commit 2e42748dea
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -8,7 +8,9 @@ interface URLFormProps {
}
export default function URLForm({ onSubmit, disabled }: URLFormProps) {
const [url, setUrl] = useState('');
// Get example URL from environment variables or use a default
const exampleUrl = process.env.NEXT_PUBLIC_EXAMPLE_URL || 'https://example.com';
const [url, setUrl] = useState(exampleUrl);
const [error, setError] = useState('');
const handleSubmit = (e: React.FormEvent) => {
@@ -64,7 +66,7 @@ export default function URLForm({ onSubmit, disabled }: URLFormProps) {
type="text"
value={url}
onChange={(e) => setUrl(e.target.value)}
placeholder="https://example.com"
placeholder={exampleUrl}
className="w-full p-3 rounded-md transition-colors"
style={{
background: 'var(--card-bg)',