MCPcopy Create free account
hub / github.com/Harry-027/DocuMind / AddButton

Function AddButton

client/src/AddButton.tsx:8–18  ·  view source on GitHub ↗
({ onClick, status }: AddButtonProps)

Source from the content-addressed store, hash-verified

6}
7
8const AddButton = ({ onClick, status }: AddButtonProps) => {
9 return (
10 status ? <p className="text-white font-bold px-8"> Uploading... </p> : (
11 <button
12 onClick={onClick}
13 className="flex items-center px-4 py-2 mt-12 bg-blue-500 hover:bg-blue-600 text-white font-semibold rounded-lg shadow-md focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-opacity-75">
14 <Plus className="w-5 h-5 mr-2" />
15 Upload Document
16 </button>
17 ));
18};
19
20export default AddButton;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected