<template>
  <div class="hn-page-header">
    <div class="hn-page-header__left" @click="$emit('back')">
      <i class="hn-icon-back"></i>
      <div class="hn-page-header__title">
        <slot name="title">{{ title }}</slot>
      </div>
    </div>
    <div class="hn-page-header__content">
      <slot name="content">{{ content }}</slot>
    </div>
  </div>
</template>

<script>
import { t } from 'heiner-ui/src/locale';
export default {
  name: 'HnPageHeader',

  props: {
    title: {
      type: String,
      default() {
        return t('hn.pageHeader.title');
      }
    },
    content: String
  }
};
</script>
