import type { JSX } from "solid-js";
import { splitProps } from "solid-js";
import type { CardContentProps } from "./card.props";

/** The main content area of a Card. */
export function CardContent(props: CardContentProps): JSX.Element {
  const [local, rest] = splitProps(props, ["children"]);
  return (
    <div data-scope="card" data-part="content" {...rest}>
      {local.children}
    </div>
  );
}
