Added agent line provision wizard page with permission gating, replacing redirect placeholder. Introduced site deletion API and UI with confirmation dialog in integration sites management. Added new site-scoped dashboard panel showing bet metrics, P/L trends, active players, and quick links. Enhanced chart tooltip to support custom formatters and fix indicator color
27 lines
755 B
TypeScript
27 lines
755 B
TypeScript
"use client";
|
|
|
|
import Link from "next/link";
|
|
import type { ReactElement } from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
import { AdminNoResourceState } from "@/components/admin/admin-no-resource-state";
|
|
import { Button } from "@/components/ui/button";
|
|
|
|
export function AdminNoIntegrationSiteState({
|
|
canCreate = false,
|
|
}: {
|
|
canCreate?: boolean;
|
|
}): ReactElement {
|
|
const { t } = useTranslation("common");
|
|
|
|
return (
|
|
<AdminNoResourceState message={t("integrationSites.emptyPlatformHint")}>
|
|
{canCreate ? (
|
|
<Button nativeButton={false} size="sm" render={<Link href="/admin/config/integration-sites" />}>
|
|
{t("integrationSites.createSite")}
|
|
</Button>
|
|
) : null}
|
|
</AdminNoResourceState>
|
|
);
|
|
}
|