// ported from https://github.com/react-bootstrap/react-bootstrap/blob/f11723114d532cfce840417834a73733a8436414/src/CloseButton.tsx import {JSX, mergeProps, splitProps} from "solid-js"; import classNames from "./classnames"; export type CloseButtonVariant = "white"; export interface CloseButtonProps extends JSX.ButtonHTMLAttributes { variant?: CloseButtonVariant; } const defaultProps = { "aria-label": "Close", }; const CloseButton = (p: CloseButtonProps) => { const [local, props] = splitProps(mergeProps(defaultProps, p), ["class", "variant"]); return (