import './Page.sass'
import { Show } from 'solid-js'

interface Props {
  children?: any
  alignment?: 'row' | 'column'
}

export default (props: Props) => {
  return (
    <>
      <Show when={props.alignment}>
        <div class={props.alignment}>{props.children}</div>
      </Show>
      <Show when={!props.alignment}>
        <div class="page">{props.children}</div>
      </Show>
    </>
  )
}
