<?php defined('BASEPATH') or exit('No direct script access allowed');

$title = isset($title) ? $title : '';
$message = isset($message) ? $message : '';
$action = isset($action) ? $action : '';
$icon = isset($icon) ? $icon : 'inbox';
$class = isset($class) ? $class : '';
?>

<div class="erp-empty<?= $class ? ' ' . $class : ''; ?>">
	<div class="flex items-start gap-3">
		<span class="erp-empty-icon">
			<i data-lucide="<?= html_escape($icon); ?>" class="h-4 w-4"></i>
		</span>
		<div class="min-w-0 flex-1">
			<?php if ($title !== '') { ?>
				<h3 class="erp-empty-title"><?= html_escape($title); ?></h3>
			<?php } ?>
			<?php if ($message !== '') { ?>
				<p class="erp-empty-message"><?= html_escape($message); ?></p>
			<?php } ?>
		</div>
	</div>
	<?php if ($action !== '') { ?>
		<div class="erp-empty-action">
			<?= $action; ?>
		</div>
	<?php } ?>
</div>
