aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/common/Card.tsx
blob: 7e2eb575a06a7bf1e6a419b2b58a55eb0386b8c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import classNames from "classnames";
import React from "react";

import "./Card.css";

function _Card(
  {
    className,
    children,
    ...otherProps
  }: React.PropsWithChildren<React.HTMLAttributes<HTMLDivElement>>,
  ref: React.ForwardedRef<HTMLDivElement>
): React.ReactElement | null {
  return (
    <div
      ref={ref}
      className={classNames("cru-card", className)}
      {...otherProps}
    >
      {children}
    </div>
  );
}

const Card = React.forwardRef(_Card);

export default Card;