File "page-content-wrapper.js"
Full Path: /home/fresvfqn/waterdamagerestorationandrepairsmithtown.com/wp-content/plugins/surerank/src/apps/admin-components/page-content-wrapper.js
File size: 607 bytes
MIME-type: text/x-java
Charset: utf-8
import PageHeader from './page-header';
import { cn } from '@Functions/utils';
const PageContentWrapper = ( {
children,
title,
description,
icon,
secondaryButton,
info_tooltip = null,
className,
} ) => {
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 }
/>
{ children }
</div>
);
};
export default PageContentWrapper;