import React, { forwardRef, memo, HTMLAttributes } from 'react';
import variants from './styles';
import styleProps from '@techytools/ui/types/styles';
import withCombinedProps from '@techytools/ui/hooks/withCombinedProps';
import withStyles from '@techytools/ui/hooks/withStyles';
export type Props = styleProps & HTMLAttributes;
export const Component = (props: Props, ref: any) => {
return ;
};
/*
* (1) default export is normal component ready to use (2) withCenterChildrenX is HOC used to predefine common props
*/
const Styled: React.FC = withStyles(
forwardRef(Component),
'CenterChildrenX',
variants
);
export default memo(Styled);
export const withCenterChildrenX = (props: Props) =>
memo(withCombinedProps(Styled, props));