import {PropsWithChildren} from 'react';

export interface IFlexContainerProps {
  style?: Record<string, string>;
  children: PropsWithChildren['children'];
}

export function FlexContainer({style, children}: IFlexContainerProps) {
  const flexContainerStyle = {
    display: 'flex',
    width: '100%',
    height: '100%',
    ...style
  };
  return <div style={flexContainerStyle}>{children}</div>;
}
