File size: 466 Bytes
b59aa07
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
interface PathFormProps {
  ref: React.RefObject<HTMLFormElement | null>;
  onBlur: () => void;
  defaultValue: string;
}

export function PathForm({ ref, onBlur, defaultValue }: PathFormProps) {
  return (
    <form ref={ref} onSubmit={(e) => e.preventDefault()} className="flex-1">
      <input
        name="url"
        type="text"
        defaultValue={defaultValue}
        className="w-full bg-transparent"
        onBlur={onBlur}
      />
    </form>
  );
}