14 lines
359 B
TypeScript
14 lines
359 B
TypeScript
import * as React from 'react';
|
|
|
|
type Props = {
|
|
readonly children?: React.ReactNode;
|
|
};
|
|
|
|
export function Header({ children }: Props) {
|
|
return (
|
|
<header className={['sticky', 'flex justify-center', 'h-16','bg-white'].join(' ')}>
|
|
<div className={['w-1/2','m-0','flex items-center justify-between'].join(' ')}>{children}</div>
|
|
</header>
|
|
);
|
|
}
|