1<template>
2 <PageTitle>
3 <template #title>
4 <Breadcrumbs
5 :items="[
6 {
7 label: 'Tickets',
8 route: {
9 name: parent,
10 },
11 },
12 {
13 label: ticket?.data?.subject || title,
14 route: {
15 name: current,
16 },
17 },
18 ]"
19 />
20 </template>
21 <template #right>
22 <slot name="right" />
23 </template>
24 </PageTitle>
25</template>
26
27<script setup lang="ts">
28import { inject } from "vue";
29import { Breadcrumbs } from "frappe-ui";
30import { PageTitle } from "@/components";
31import { ITicket } from "./symbols";
32
33interface P {
34 parent: string;
35 current: string;
36 title?: string;
37}
38
39withDefaults(defineProps<P>(), {
40 title: "",
41});
42const ticket = inject(ITicket);
43</script>
44