mirror of
https://github.com/prowler-cloud/prowler.git
synced 2025-12-19 05:17:47 +00:00
19 lines
580 B
TypeScript
19 lines
580 B
TypeScript
import {
|
|
adaptAttackSurfaceOverview,
|
|
getAttackSurfaceOverview,
|
|
} from "@/actions/overview";
|
|
|
|
import { pickFilterParams } from "../_lib/filter-params";
|
|
import { SSRComponentProps } from "../_types";
|
|
import { AttackSurface } from "./_components/attack-surface";
|
|
|
|
export const AttackSurfaceSSR = async ({ searchParams }: SSRComponentProps) => {
|
|
const filters = pickFilterParams(searchParams);
|
|
|
|
const response = await getAttackSurfaceOverview({ filters });
|
|
|
|
const items = adaptAttackSurfaceOverview(response);
|
|
|
|
return <AttackSurface items={items} filters={filters} />;
|
|
};
|