import React, {FC} from "react"; import {useNodesStore} from "./store"; import {__} from "../globals"; import classNames from "classnames"; import {useIsMobile} from "./hooks"; export type AutoApplyButtonProps = { } export const AutoApplyButton: FC = ({}) => { const isEnabled = useNodesStore(store => store.autoApply) const toggle = useNodesStore(store => store.toggleAutoApply) const isMobile = useIsMobile() // Mobile: compact pill with icon + short label (Auto / Manual) if (isMobile) { // On lighter, bluish blurred pills we want darker text and a blue accent when enabled const mobileColor = isEnabled ? 'rgba(10, 84, 255, 1)' : 'rgba(16, 40, 66, 0.96)' return ( ) } return }