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

<script>
import { t } from 'ai-vue/src/locale';
export default {
  name: 'AiPageHeader',

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