import React from "react"; import Image from "next/image"; 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; }; const AnalyticsEmptyState = ({ title, description, assetPath, className }: Props) => { // theme hook const { resolvedTheme } = useTheme(); const backgroundReolvedPath = resolvedTheme === "light" ? lightBackgroundAsset : darkBackgroundAsset; return (
{description}
}