import React, { FunctionComponent, ButtonHTMLAttributes, useState } from 'react'; import Tappable from '../Tappable/Tappable'; import { getClassName } from '../../helpers/getClassName'; import { classNames } from '../../lib/classNames'; import { HasRootRef } from '../../types'; import { usePlatform } from '../../hooks/usePlatform'; import Text from '../Typography/Text/Text'; export interface ButtonProps extends ButtonHTMLAttributes, HasRootRef { active?: boolean; hovered?: boolean; } const SliderSwitchButton: FunctionComponent = (props: ButtonProps) => { const { active, hovered, className, children, getRootRef, ...restProps } = props; const platform = usePlatform(); const [focus, setFocus] = useState(false); const toggleFocus = () => { setFocus(!focus); }; return {children} ; }; export default SliderSwitchButton;