mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-05 20:44:07 +08:00
13 lines
374 B
TypeScript
13 lines
374 B
TypeScript
import type { ElementType, ReactNode } from "react";
|
|
import styles from "./Card.module.scss";
|
|
|
|
type CardProps = {
|
|
as?: ElementType;
|
|
className?: string;
|
|
children: ReactNode;
|
|
};
|
|
|
|
export function Card({ as: Component = "div", className, children }: CardProps) {
|
|
return <Component className={[styles.root, className].filter(Boolean).join(" ")}>{children}</Component>;
|
|
}
|