import {JSX, mergeProps, splitProps} from "solid-js"; import classNames from "./classnames"; import {useBootstrapPrefix} from "./ThemeProvider"; import CardHeaderContext from "./CardHeaderContext"; import {BsPrefixProps, BsPrefixRefForwardingComponent} from "./helpers"; import {Dynamic} from "solid-js/web"; export interface CardHeaderProps extends BsPrefixProps, JSX.HTMLAttributes {} const defaultProps = { as: "div", }; const CardHeader: BsPrefixRefForwardingComponent<"div", CardHeaderProps> = (p: CardHeaderProps) => { const [local, props] = splitProps(mergeProps(defaultProps, p), ["as", "bsPrefix", "class"]); const prefix = useBootstrapPrefix(local.bsPrefix, "card-header"); const contextValue = { get cardHeaderBsPrefix() { return prefix; }, }; return ( ); }; export default CardHeader;