import { StyleSheet, View } from 'react-native';
import { columns } from './styles';
import type { IColumnProps } from './types';

export default function Column(props: IColumnProps) {
  const { children, style, align = 'middle' } = props;
  return (
    <View style={StyleSheet.flatten([columns[align], style])}>{children}</View>
  );
}
