-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathautomations-header.tsx
More file actions
40 lines (38 loc) · 974 Bytes
/
automations-header.tsx
File metadata and controls
40 lines (38 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import {
Breadcrumb,
BreadcrumbItem,
BreadcrumbList,
} from "@/components/ui/breadcrumb";
import { Button } from "@/components/ui/button";
import { DocsLink } from "@/components/ui/docs-link";
import { Icon } from "@/components/ui/icons";
import { Link } from "@tanstack/react-router";
export const AutomationsHeader = () => {
return (
<div className="flex items-center justify-between">
<Header />
<DocsLink id="automations-guide" label="Documentation" />
</div>
);
};
const Header = () => (
<div className="flex items-center gap-2">
<Breadcrumb>
<BreadcrumbList>
<BreadcrumbItem className="text-xl font-semibold">
Automations
</BreadcrumbItem>
</BreadcrumbList>
</Breadcrumb>
<Link to="/automations/create" aria-label="create automation">
<Button
size="icon"
className="h-7 w-7"
variant="outline"
aria-label="create automation"
>
<Icon id="Plus" className="h-4 w-4" />
</Button>
</Link>
</div>
);