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

/** The footer section of a Card, typically containing actions or metadata. */
export function CardFooter(props: CardFooterProps): JSX.Element {
  const [local, rest] = splitProps(props, ["children"]);
  return (
    <div data-scope="card" data-part="footer" {...rest}>
      {local.children}
    </div>
  );
}
