mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
27 lines
472 B
TypeScript
27 lines
472 B
TypeScript
import * as React from 'react';
|
|
import { FlexProps } from './interfaces';
|
|
import { FlexItem } from './FlexItem';
|
|
import { FlexStyled } from './Flex.style';
|
|
|
|
export function Flex({
|
|
children,
|
|
col = 12,
|
|
gap,
|
|
align,
|
|
className,
|
|
style,
|
|
}: FlexProps) {
|
|
return (
|
|
<FlexStyled
|
|
col={col}
|
|
gap={gap}
|
|
align={align}
|
|
className={className}
|
|
style={style}
|
|
>
|
|
{children}
|
|
<FlexItem col={col} gap={gap} />
|
|
</FlexStyled>
|
|
);
|
|
}
|