JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "dashboard-content.tsx"

Full Path: /home/markqprx/iniasli.pro/client/ui/layout/dashboard-content.tsx
File size: 474 bytes
MIME-type: text/plain
Charset: utf-8

import {cloneElement, ReactElement} from 'react';
import clsx from 'clsx';

interface DashboardContentProps {
  children: ReactElement<{className: string}>;
  isScrollable?: boolean;
}
export function DashboardContent({
  children,
  isScrollable = true,
}: DashboardContentProps) {
  return cloneElement(children, {
    className: clsx(
      children.props.className,
      isScrollable && 'overflow-y-auto stable-scrollbar',
      'dashboard-grid-content'
    ),
  });
}