👔 forwarding callback data

create a type and implement it in props that pass callback data from root to the component that will process the
request.
This commit is contained in:
2025-08-27 22:47:55 +07:00
parent 1bf56603e0
commit 73c5bff44c
4 changed files with 19 additions and 10 deletions

View File

@ -2,8 +2,9 @@
import { CircularProgress } from "@heroui/react";
import React from "react";
import { ParamProps } from "../types/ParamProps";
const LoadingProcess = () => {
const LoadingProcess = ({ callbackData }: { callbackData: ParamProps }) => {
return (
<div className="w-full flex flex-col items-center text-center mt-[26vh]">
<CircularProgress aria-label="Loading..." size="lg" />
@ -12,6 +13,9 @@ const LoadingProcess = () => {
<p className="text-sm text-neutral-400">
Your request is being processed
</p>
<p className="text-sm text-neutral-400">
{JSON.stringify(callbackData)}
</p>
</div>
</div>
);