import type { ActionButtonProps } from "@follow/components/ui/button/action-button.js" import { ActionButton } from "@follow/components/ui/button/action-button.js" import { forwardRef } from "react" import { useCommand } from "~/modules/command/hooks/use-command" import type { FollowCommandId } from "~/modules/command/types" export interface CommandActionButtonProps extends ActionButtonProps { commandId: FollowCommandId onClick: () => void } export const CommandActionButton = forwardRef( (props, ref) => { const command = useCommand(props.commandId) if (!command) return null const { icon, label } = command return ( ) }, )