Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Add controls

Tim Wilsonf4c094d762c3
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/create-email-button.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/create-email-button.tsx
new file mode 100644
index 0000000000..2ae2e372a7
--- /dev/null
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/create-email-button.tsx
@@ -0,0 +1,19 @@
+"use client";
+
+import { Button, useKeyboardShortcut } from "@dub/ui";
+import { toast } from "sonner";
+
+export function CreateEmailButton() {
+ useKeyboardShortcut("c", () => toast.info("WIP"));
+
+ return (
+ <>
+ <Button
+ type="button"
+ onClick={() => toast.info("WIP")}
+ text="Create email"
+ shortcut="C"
+ />
+ </>
+ );
+}
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/page.tsx
index f0d4572ba4..ef47e52dfe 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/page.tsx
@@ -1,10 +1,11 @@
import { PageContent } from "@/ui/layout/page-content";
import { PageWidthWrapper } from "@/ui/layout/page-width-wrapper";
+import { CreateEmailButton } from "./create-email-button";
import { ProgramEmailsPageClient } from "./page-client";
export default function ProgramEmailsPage() {
return (
- <PageContent title="Email campaigns">
+ <PageContent title="Email campaigns" controls={<CreateEmailButton />}>
<PageWidthWrapper className="mb-8">
<ProgramEmailsPageClient />
</PageWidthWrapper>