27 lines
761 B
TypeScript
27 lines
761 B
TypeScript
import SearchUser from "@/app/Components/Global/SearchUser/searchUser";
|
|
import QuitarSancion from "@/app/Components/QuitarSancion/QuitarSancion";
|
|
|
|
export default async function Page(props: {
|
|
searchParams?: Promise<{
|
|
numAcount: string;
|
|
success?: string;
|
|
error?: string;
|
|
}>;
|
|
}) {
|
|
const params = await props.searchParams;
|
|
const numAcount = params?.numAcount ? params.numAcount : null;
|
|
const showSuccess = params?.success ? params.success : null;
|
|
const showError = params?.error ? params.error : null;
|
|
|
|
return (
|
|
<>
|
|
<h2 className="title"> Quitar Sanciones </h2>
|
|
<div style={{ display: "flex", gap: "1rem", flexDirection: "column" }}>
|
|
<SearchUser value={numAcount} />
|
|
<QuitarSancion />
|
|
</div>
|
|
</>
|
|
);
|
|
}
|
|
//IO
|