/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ import React from "react"; import { Button } from "@plane/propel/button"; type Props = { title: string; description?: React.ReactNode; image?: string; primaryButton?: { icon?: any; text: string; onClick: () => void; }; secondaryButton?: React.ReactNode; disabled?: boolean; }; export function EmptyState({ title, description, image, primaryButton, secondaryButton, disabled = false }: Props) { return (
{image && {primaryButton?.text}
{title}
{description &&

{description}

}
{primaryButton && ( )} {secondaryButton}
); }