// next import React from "react"; import Link from "next/link"; // react // icons import { ChevronRight } from "lucide-react"; type EmptySpaceProps = { title: string; description: string; children: any; Icon?: any; link?: { text: string; href: string }; }; const EmptySpace: React.FC = ({ title, description, children, Icon, link }) => ( <>
{Icon ? (
) : null}

{title}

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