export type CellAlign = 'left' | 'center' | 'right';

export type CellDataType =
  | 'number'
  | 'date'
  | 'time'
  | 'string'
  | 'button'
  | CellAlign;

export const getCellAlign = (type: CellDataType): CellAlign => {
  switch (type) {
    case 'number':
    case 'date':
    case 'time':
      return 'right';
    case 'string':
    case 'button':
      return 'left';
    default:
      return type;
  }
};
