({ onClick, status }: AddButtonProps)
| 6 | } |
| 7 | |
| 8 | const 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 | |
| 20 | export default AddButton; |
nothing calls this directly
no outgoing calls
no test coverage detected