blob: ebbce77ec4e118f53299b20ec0893f87cf4b9ef7 (
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 * as 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;
|