import { forwardRef } from "react"; import { useContextProps } from "@hooks/useContextProps"; import { BaseButton, ButtonProps } from "@components/Internal/BaseButton"; import { StyledButton } from "./Button.styles"; import { ButtonContext } from "./Button.context"; export type { ButtonProps, ButtonVariants, } from "@components/Internal/BaseButton"; /** A button component that can be used to trigger actions or events * * @example */ export const Button = forwardRef( function Button(props, ref) { [props, ref] = useContextProps(ButtonContext, props, ref); return ; } );