1 import type { ComponentPropsWithRef, ReactNode } from 'react';
3 interface Props extends ComponentPropsWithRef<'div'> {
5 imageProps?: ComponentPropsWithRef<'img'>;
9 const EmptyViewContainer = ({ imageProps, children, height, ...containerProps }: Props) => {
11 <div className="m-auto p-11" {...containerProps}>
12 <figure className="flex-1 text-center p-4">
13 {imageProps && <img className="w-auto" height={height} {...imageProps} alt={imageProps.alt || ''} />}
14 <figcaption className="mt-8">{children}</figcaption>
20 export default EmptyViewContainer;