Spaces:
Build error
Build error
Download components/EmptyState.js from spdniloy/anycoder-380d34cb: direct link, hf CLI and curl.
- Browser
- Download file 914 Bytes
-
https://huggingface.co/spaces/spdniloy/anycoder-380d34cb/resolve/main/components/EmptyState.js
- Command line
-
hf download hf://spaces/spdniloy/anycoder-380d34cb/components/EmptyState.js
-
curl -L -o EmptyState.js https://huggingface.co/spaces/spdniloy/anycoder-380d34cb/resolve/main/components/EmptyState.js
914 Bytes
| import { Receipt } from 'lucide-react'; | |
| export default function EmptyState({ onAddTransaction }) { | |
| return ( | |
| <div className="text-center py-16"> | |
| <div className="inline-flex items-center justify-center w-16 h-16 bg-neutral-100 rounded-full mb-4"> | |
| <Receipt className="w-8 h-8 text-neutral-400" /> | |
| </div> | |
| <h3 className="text-lg font-medium text-neutral-800 mb-2"> | |
| No transactions yet | |
| </h3> | |
| <p className="text-neutral-500 mb-6 max-w-sm mx-auto"> | |
| Start tracking your income and expenses to see your profit overview here. | |
| </p> | |
| <div className="flex gap-3 justify-center"> | |
| <button onClick={() => onAddTransaction('income')} className="btn-success"> | |
| Add Income | |
| </button> | |
| <button onClick={() => onAddTransaction('expense')} className="btn-danger"> | |
| Add Expense | |
| </button> | |
| </div> | |
| </div> | |
| ); | |
| } |