import React, { HTMLAttributes } from 'react';
import styled from 'styled-components';
import { CommonStyle } from '../common/common';
export interface HeaderProps extends HTMLAttributes {
height?: number | string;
width?: number | string;
bgc?: string;
justify?: 'center' | 'start' | 'end' | 'space-between' | 'space-around';
aline?: 'center' | 'start' | 'end';
direction?: 'column' | 'row';
children?: React.ReactNode;
}
type PropsStyled = Omit;
const HeaderStyled = styled(CommonStyle)`
display: flex;
flex-direction: ${(props: PropsStyled) => props.direction};
`;
const Header: React.FC = (props) => {
const { children, ...rest } = props;
return {children};
};
Header.defaultProps = {
height: '100%',
width: '100%',
children: '',
bgc: 'inherit',
direction: 'row',
justify: 'start',
aline: 'center'
};
export default Header;