import { Heading } from '@stacklok/ui-kit' import { JSX, ReactNode, SVGProps } from 'react' import { tv } from 'tailwind-variants' const actionsStyle = tv({ base: 'mx-auto mt-8', variants: { actions: { 1: '', 2: 'grid grid-cols-2 gap-2', }, }, }) function Actions({ actions }: { actions: [ReactNode, ReactNode?] }) { return (
{actions}
) } export function EmptyState({ actions, body, illustration: Illustration, title, }: { illustration: (props: SVGProps) => JSX.Element title: string body: string actions: [ReactNode, ReactNode?] | null }) { return (
{title}

{body}

{actions ? : null}
) }