Better gRPC status on error

This commit is contained in:
Gregory Schier
2024-02-24 12:41:43 -08:00
parent 8347093e8b
commit 36eabe7528
5 changed files with 155 additions and 89 deletions

View File

@@ -1,12 +1,19 @@
import classNames from 'classnames';
import type { ReactNode } from 'react';
interface Props {
children: ReactNode;
className?: string;
}
export function EmptyStateText({ children }: Props) {
export function EmptyStateText({ children, className }: Props) {
return (
<div className="rounded-lg border border-dashed border-highlight h-full py-2 text-gray-400 flex items-center justify-center">
<div
className={classNames(
className,
'rounded-lg border border-dashed border-highlight h-full py-2 text-gray-400 flex items-center justify-center',
)}
>
{children}
</div>
);