<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

require_once dirname( __DIR__, 3 ) . '/includes/table-block-render-helpers.php';

$axcelersblocks_block_name = isset( $block->name ) ? str_replace( '/', '-', $block->name ) . '-block' : 'axcelersblocks-table-row-block';

echo wp_kses_post(
	axcelersblocks_table_render_element(
		$attributes,
		$content,
		$axcelersblocks_block_name,
		array(
			'allowed_tags'  => array( 'tr' ),
			'default_tag'   => 'tr',
			'base_classes'  => array( 'axcelersblocks-table-row' ),
			'fallback_slug' => 'axb-table-row',
		)
	)
);
