import type { FC } from '../../lib/teact/teact'; import type React from '../../lib/teact/teact'; import type { OwnProps as ButtonProps } from './Button'; import buildClassName from '../../util/buildClassName'; import useOldLang from '../../hooks/useOldLang'; import Button from './Button'; import './FloatingActionButton.scss'; type OwnProps = { isShown: boolean; className?: string; color?: ButtonProps['color']; ariaLabel?: ButtonProps['ariaLabel']; disabled?: boolean; onClick: () => void; children: React.ReactNode; }; const FloatingActionButton: FC = ({ isShown, className, color = 'primary', ariaLabel, disabled, onClick, children, }) => { const lang = useOldLang(); const buttonClassName = buildClassName( 'FloatingActionButton', isShown && 'revealed', className, ); return ( ); }; export default FloatingActionButton;