From f55ecba8df41413e7862b091b41feca74f3ab77c Mon Sep 17 00:00:00 2001 From: Irshad Ahmad Date: Fri, 18 Oct 2024 14:57:02 +0530 Subject: [PATCH] Allow classname prop for WpAdminContainer --- .../shared-ui/components/wp-admin-container.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/js/shared-ui/components/wp-admin-container.tsx b/packages/js/shared-ui/components/wp-admin-container.tsx index c03abca5..17854d3b 100644 --- a/packages/js/shared-ui/components/wp-admin-container.tsx +++ b/packages/js/shared-ui/components/wp-admin-container.tsx @@ -1,9 +1,16 @@ +import { cn } from '@wpsocio/ui-components'; + export type WpAdminContainerProps = { children?: React.ReactNode; sidebar: React.ReactNode; + wrapperClassName?: string; }; -export function WpAdminContainer({ children, sidebar }: WpAdminContainerProps) { +export function WpAdminContainer({ + children, + sidebar, + wrapperClassName, +}: WpAdminContainerProps) { return ( <> -
+
{children}
{sidebar}