<script>
  import { _ } from "svelte-i18n";
  import StatCards from "./StatCards.svelte";
  import store from "../../store";
  let navOpen = false;
</script>

<div
  class="p-5 overflow-x-hidden"
  on:click={() => {
    navOpen = false;
  }}>
  <h1 class="text-3xl leading-tight">
    <span class="font-extrabold">{$_('dashboard-title')}</span>
    <span>
      -
      {$_('dashboard-greeting')},
      <span
        class="text-blue-500">{store.state.jwtinfo.userdetails.firstname} {store.state.jwtinfo.userdetails.lastname}</span></span>
  </h1>
  <StatCards />
</div>
