aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/common/list/ListContainer.tsx
blob: aa00d12c60526682cc05b89c02b9f64e83261b13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { ComponentPropsWithoutRef, forwardRef, Ref } from "react";
import classNames from "classnames";

import "./ListContainer.css"

function _ListContainer(
  { className, children, ...otherProps }: ComponentPropsWithoutRef<"div">,
  ref: Ref<HTMLDivElement>,
) {
  return (
    <div
      ref={ref}
      className={classNames("cru-list-container", className)}
      {...otherProps}
    >
      {children}
    </div>
  );
}

const ListContainer = forwardRef(_ListContainer);

export default ListContainer;