/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ import { useTheme } from "next-themes"; // plane package imports import { cn } from "@plane/utils"; // assets import darkBackgroundAsset from "@/app/assets/empty-state/analytics/empty-grid-background-dark.webp?url"; import lightBackgroundAsset from "@/app/assets/empty-state/analytics/empty-grid-background-light.webp?url"; type Props = { title: string; description?: string; assetPath?: string; className?: string; }; function AnalyticsEmptyState({ title, description, assetPath, className }: Props) { // theme hook const { resolvedTheme } = useTheme(); const backgroundReolvedPath = resolvedTheme === "light" ? lightBackgroundAsset : darkBackgroundAsset; return (
{description}
}