import React from 'react'; import { omitUndefined } from '../../../theme/tools/utils'; import Button from '../../primitives/Button'; import { HStack } from '../../primitives/Stack'; import type { IFabProps } from './types'; const Fab = (props: IFabProps, ref: any) => { const { label, icon, placement = 'bottom-right', ...newProps } = omitUndefined(props); const placementProps: any = { 'top-right': { top: 4, right: 4, position: 'absolute' }, 'top-left': { top: 4, left: 4, position: 'absolute' }, 'bottom-right': { bottom: 4, right: 4, position: 'absolute' }, 'bottom-left': { bottom: 4, left: 4, position: 'absolute' }, }; return ( ); }; export default React.memo(React.forwardRef(Fab));