mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-16 07:25:31 +01:00
19 lines
506 B
TypeScript
19 lines
506 B
TypeScript
|
|
import { PlusIcon } from 'lucide-react';
|
||
|
|
import React from 'react';
|
||
|
|
import { Button } from '~/components/ui';
|
||
|
|
|
||
|
|
type UploadFileProps = {
|
||
|
|
onClick: () => void;
|
||
|
|
};
|
||
|
|
|
||
|
|
export default function UploadFileButton({ onClick }: UploadFileProps) {
|
||
|
|
return (
|
||
|
|
<div className="w-full">
|
||
|
|
<Button className="w-full bg-black px-3 text-white" onClick={onClick}>
|
||
|
|
<PlusIcon className="h-4 w-4 font-bold" />
|
||
|
|
<span className="text-nowrap">Upload New File</span>
|
||
|
|
</Button>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|