import React, { type ComponentPropsWithRef, type ElementType, type ReactNode } from 'react'; import { cn } from '../utils/cn'; export type LeftCenterRightLayoutProps = ComponentPropsWithRef & { as?: E; left?: ReactNode; center?: ReactNode; right?: ReactNode; }; export const LeftCenterRightLayout = ({ as: As = 'div', left, center, right, className, children, ref, ...props }: LeftCenterRightLayoutProps) => { return ( {left}
{center} {children}
{right}
); };