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

/** The root container element for a Card. */
export function CardRoot(props: CardRootProps): JSX.Element {
  const [local, rest] = splitProps(props, ["children"]);
  return (
    <div data-scope="card" data-part="root" {...rest}>
      {local.children}
    </div>
  );
}
