/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ // next import React from "react"; import Link from "next/link"; import { ChevronRightOutline } from "@makeplane/propel/icons"; type EmptySpaceProps = { title: string; description: string; children: any; Icon?: any; link?: { text: string; href: string }; }; function EmptySpace({ title, description, children, Icon, link }: EmptySpaceProps) { return ( <>
{Icon ? (
) : null}

{title}

{description}
{link ? (
{link.text}
) : null}
); } type EmptySpaceItemProps = { title: string; description?: React.ReactNode | string; Icon: any; action?: () => void; href?: string; }; function EmptySpaceItem({ title, description, Icon, action, href }: EmptySpaceItemProps) { let spaceItem = (
{title}
{description ?
{description}
: null}
); if (href) { spaceItem = {spaceItem}; } return ( <>
  • {spaceItem}
  • ); } export { EmptySpace, EmptySpaceItem };