-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: custom loading text for loader component
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import Image from "next/image"; | ||
|
||
export function Loader() { | ||
export function Loader({ loadingText = "Loading…" }: { loadingText?: string }) { | ||
return ( | ||
<div className="mx-auto flex animate-fade-in-up flex-col items-center justify-center gap-3"> | ||
<Image unoptimized height={120} width={128} src="/loading.gif" alt="Loading" /> | ||
<p className="text-sm">Loading…</p> | ||
<p className="text-sm">{loadingText}</p> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters