import classNames from "clsx";
import { mergeDeep } from "../../helpers/mergeDeep";
import { useTheme } from "../Flowbite";
import { createMemo, mergeProps, splitProps } from "solid-js";
export const Radio = p => {
    const defaultProps = { theme: {} };
    const [local, props] = splitProps(mergeProps(defaultProps, p), [
        "class",
        "class",
        "ref",
        "theme",
    ]);
    const theme = createMemo(() => mergeDeep(useTheme().theme.radio, local.theme));
    return (<input ref={local.ref} class={classNames(theme().base, local.class)} type="radio" {...props}/>);
};
