<?php
declare(strict_types=1);
if ( ! defined( 'ABSPATH' ) ) { exit; }
/**
 * Section Header Component.
 * Usage: get_template_part( 'template-parts/components/section-header' );
 * Expects: $args['heading'], $args['subtext'] (optional).
 */
$heading = $args['heading'] ?? '';
$subtext = $args['subtext'] ?? '';
if ( ! $heading ) { return; }
?>
<header class="wte-section__header">
	<h2 class="wte-section__heading"><?php echo esc_html( $heading ); ?></h2>
	<?php if ( $subtext ) : ?>
		<p class="wte-section__subtext"><?php echo esc_html( $subtext ); ?></p>
	<?php endif; ?>
</header>
