mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-05-06 08:47:18 +00:00
d23c2f3b53
Co-authored-by: Pablo F.G <pablo.fernandez@prowler.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
46 lines
1.5 KiB
TypeScript
46 lines
1.5 KiB
TypeScript
"use client";
|
|
|
|
import { useState } from "react";
|
|
|
|
import { ProviderWizardModal } from "@/components/providers/wizard";
|
|
import { Button, Card, CardContent } from "@/components/shadcn";
|
|
|
|
import { InfoIcon } from "../icons/Icons";
|
|
|
|
export const NoProvidersAdded = () => {
|
|
const [open, setOpen] = useState(false);
|
|
|
|
return (
|
|
<>
|
|
<div className="flex min-h-screen items-center justify-center">
|
|
<Card variant="base" className="mx-auto w-full max-w-3xl">
|
|
<CardContent className="flex flex-col items-center gap-4 p-6 text-center sm:p-8">
|
|
<div className="flex flex-col items-center gap-4">
|
|
<InfoIcon className="h-10 w-10 text-gray-800 dark:text-white" />
|
|
<h2 className="text-2xl font-bold text-gray-800 dark:text-white">
|
|
No Providers Configured
|
|
</h2>
|
|
</div>
|
|
<div className="flex flex-col items-center gap-3">
|
|
<p className="text-md leading-relaxed text-gray-600 dark:text-gray-300">
|
|
No providers have been configured. Start by setting up a
|
|
provider.
|
|
</p>
|
|
</div>
|
|
|
|
<Button
|
|
aria-label="Open Add Provider modal"
|
|
className="w-full max-w-xs justify-center"
|
|
size="lg"
|
|
onClick={() => setOpen(true)}
|
|
>
|
|
Get Started
|
|
</Button>
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
<ProviderWizardModal open={open} onOpenChange={setOpen} />
|
|
</>
|
|
);
|
|
};
|