HEX
Server: LiteSpeed
System: Linux server902.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: deshuvsd (2181)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/deshuvsd/www/wp-content/plugins/surerank/src/apps/admin-components/page-content-wrapper.js
import PageHeader from './page-header';
import { cn } from '@Functions/utils';

const PageContentWrapper = ( {
	children,
	title,
	description,
	icon,
	secondaryButton,
	info_tooltip = null,
	className,
	afterDescription = null,
} ) => {
	if ( ! children ) {
		return null;
	}

	return (
		<div
			className={ cn(
				'flex flex-col justify-start-start gap-7 w-full h-full',
				className
			) }
		>
			<PageHeader
				title={ title }
				description={ description }
				icon={ icon }
				secondaryButton={ secondaryButton }
				info_tooltip={ info_tooltip }
				afterDescription={ afterDescription }
			/>
			{ children }
		</div>
	);
};

export default PageContentWrapper;