mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-30 15:24:22 +00:00
Co-authored-by: Pablo F.G <pablo.fernandez@prowler.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
20 lines
581 B
TypeScript
20 lines
581 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} />;
|
|
};
|