summaryrefslogtreecommitdiff
path: root/src/components/upload/SourceInput.tsx
blob: fbc8f52e3f0b0520552a007811e1e13be5b17520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'use client';
import { Input } from '@/components/ui';
import React from 'react';

export function SourceInput() {
    return (
        <div className="flex flex-col gap-2.5 w-full">
            <span>ИСТОЧНИК</span>
            <Input
                name="source"
                onKeyDown={(e: React.KeyboardEvent<HTMLInputElement>) => {
                    if (e.key === 'Enter') {
                        e.preventDefault();
                    }
                }}
                className="w-full h-10 py-2.5 px-5 border rounded-4xl"
                type="text"
            />
        </div>
    );
}