import { reactionButton, type ReactionButtonVariantProps, } from "@seed-design/css/recipes/reaction-button"; import { Toggle as TogglePrimitive } from "@seed-design/react-toggle"; import clsx from "clsx"; import * as React from "react"; import { PendingButtonProvider, usePendingButton, type UsePendingButtonProps, } from "../LoadingIndicator/usePendingButton"; export interface ReactionButtonProps extends ReactionButtonVariantProps, UsePendingButtonProps, TogglePrimitive.RootProps {} export const ReactionButton = React.forwardRef( ({ size = "small", loading = false, className, ...otherProps }, ref) => { const recipeClassName = reactionButton({ size }); const api = usePendingButton({ loading, disabled: otherProps.disabled }); return ( ); }, ); ReactionButton.displayName = "ReactionButton";