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

export function SourceInput() {
    const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
        if (e.key === 'Enter') {
            e.preventDefault();
        }
    };

    return (
        <div className="flex flex-col gap-2.5 w-full">
            <span>ИСТОЧНИК</span>
            <Input
                placeholder="Введите источник"
                name="source"
                onKeyDown={handleKeyDown}
                className="w-full h-10 py-2.5 px-5 border rounded-4xl"
                type="text"
            />
        </div>
    );
}