| "use client"; |
|
|
| import { Button } from "@midday/ui/button"; |
| import { Icons } from "@midday/ui/icons"; |
| import { AddAccountButton } from "@/components/add-account-button"; |
| import { useTransactionFilterParamsWithPersistence } from "@/hooks/use-transaction-filter-params-with-persistence"; |
|
|
| export function NoResults() { |
| const { clearAllFilters } = useTransactionFilterParamsWithPersistence(); |
|
|
| return ( |
| <div className="h-[calc(100vh-300px)] flex items-center justify-center"> |
| <div className="flex flex-col items-center"> |
| <Icons.Transactions2 className="mb-4" /> |
| <div className="text-center mb-6 space-y-2"> |
| <h2 className="font-medium text-lg">No results</h2> |
| <p className="text-[#606060] text-sm"> |
| Try another search, or adjusting the filters |
| </p> |
| </div> |
| |
| <Button variant="outline" onClick={clearAllFilters}> |
| Clear filters |
| </Button> |
| </div> |
| </div> |
| ); |
| } |
|
|
| export function NoTransactions() { |
| return ( |
| <div className="absolute w-full h-[calc(100vh-300px)] top-0 left-0 flex items-center justify-center z-20"> |
| <div className="text-center max-w-sm mx-auto flex flex-col items-center justify-center"> |
| <h2 className="text-xl font-medium mb-2">No transactions</h2> |
| <p className="text-sm text-[#878787] mb-6"> |
| Connect your bank account to automatically import transactions and |
| unlock powerful financial insights to help you make smarter money |
| decisions. |
| </p> |
| |
| <AddAccountButton /> |
| </div> |
| </div> |
| ); |
| } |
|
|
| export function ReviewComplete() { |
| return ( |
| <div className="absolute w-full h-[calc(100vh-300px)] top-0 left-0 flex items-center justify-center z-20"> |
| <div className="text-center max-w-sm mx-auto flex flex-col items-center justify-center"> |
| <h2 className="text-xl font-medium mb-2">All caught up!</h2> |
| <p className="text-sm text-[#878787]"> |
| You've reviewed and exported all your transactions. New transactions |
| will appear here when they're ready for review. |
| </p> |
| </div> |
| </div> |
| ); |
| } |
|
|