import { EmptyState as AstryxEmptyState } from '@astryxdesign/core/EmptyState';

// ==============================|| EMPTY STATE ||============================== //

export default function EmptyState({ icon: Icon, title = 'No records found', caption }) {
  return (
    <AstryxEmptyState
      title={title}
      description={caption}
      icon={Icon ? <Icon size={36} style={{ color: '#94a3b8' }} /> : undefined}
    />
  );
}
