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 new Payouts settings UI

Tim Wilson1b8dc83830ed
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/bank-account.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/bank-account.tsx
index 8a8b224346..f1f9a1ac64 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/bank-account.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/bank-account.tsx
@@ -1,51 +1,83 @@
"use client";
import useWorkspace from "@/lib/swr/use-workspace";
-import { useAddBankAccountModal } from "@/ui/modals/add-bank-account-modal";
-import { Badge, Button } from "@dub/ui";
-import { CreditCard } from "lucide-react";
+import { StatusBadge, Tooltip } from "@dub/ui";
+import { Fragment } from "react";
export const BankAccount = () => {
- const { bankAccountName, partialAccountNumber, bankAccountVerified } =
+ const { bankAccountVerified, partialAccountNumber, routingNumber, slug } =
useWorkspace();
- const { AddBankAccountModal, setShowAddBankAccountModal } =
- useAddBankAccountModal();
-
return (
<>
- <AddBankAccountModal />
- <div className="flex items-center gap-5 rounded-lg border bg-white p-5">
- <div className="hidden h-12 w-12 items-center justify-center rounded-full border border-neutral-300 sm:inline-flex">
- <CreditCard className="h-5 w-5 text-gray-600" />
- </div>
-
- <div className="flex grow flex-col gap-1">
- <div className="text-base font-semibold text-gray-700">
- {bankAccountName ?? "Add your bank account"}
+ <div className="flex flex-col p-4">
+ <div className="flex justify-between gap-5">
+ <div className="p-1">
+ <div className="text-sm text-neutral-500">Bank account</div>
</div>
- <div className="text-sm text-neutral-500">
- {partialAccountNumber
- ? `*******${partialAccountNumber}`
- : "Add your bank account"}
- </div>
- </div>
-
- <div>
- {bankAccountName ? (
- bankAccountVerified ? (
- <Badge variant="blue">VERIFIED</Badge>
- ) : (
- <Badge variant="gray">PENDING VERIFICATION</Badge>
- )
+ {bankAccountVerified !== undefined ? (
+ <div>
+ {bankAccountVerified ? (
+ <VerificationBadge verified={true} />
+ ) : (
+ <Tooltip
+ align="end"
+ content={
+ <div className="px-3 py-2 text-sm text-neutral-600">
+ To complete verification,{" "}
+ <a
+ href={
+ `mailto:[email protected]?subject=Verifying payouts bank account` +
+ `&body=I am verifying bank account ownership for my workspace "${slug}".` +
+ ` I have attached a copy of my recent bank statement to this email.`
+ }
+ className="underline transition-colors duration-75 hover:text-neutral-900"
+ >
+ contact support
+ </a>{" "}
+ </div>
+ }
+ >
+ <div>
+ <VerificationBadge verified={!!bankAccountVerified} />
+ </div>
+ </Tooltip>
+ )}
+ </div>
) : (
- <Button
- text="Add bank account"
- onClick={() => setShowAddBankAccountModal(true)}
- />
+ <div className="h-6 w-16 animate-pulse rounded bg-neutral-200" />
)}
</div>
+ <div className="mt-12 flex grow flex-col justify-end p-1">
+ <div className="grid grid-cols-[repeat(2,minmax(0,1fr))] gap-x-4 gap-y-1">
+ {[
+ ["Routing number", routingNumber],
+ ["Account number", partialAccountNumber?.padStart(10, "•")],
+ ].map(([label, value]) => (
+ <Fragment key={label}>
+ <div className="truncate text-base font-medium text-neutral-900">
+ {label}
+ </div>
+ <div className="flex justify-end text-right font-mono text-neutral-500">
+ {value !== undefined ? (
+ <span>{value}</span>
+ ) : (
+ <div className="h-6 w-24 animate-pulse rounded bg-neutral-200" />
+ )}
+ </div>
+ </Fragment>
+ ))}
+ </div>
+ </div>
</div>
</>
);
};
+
+function VerificationBadge({ verified }: { verified: boolean }) {
+ return (
+ <StatusBadge variant={verified ? "success" : "neutral"} icon={null}>
+ {verified ? "Verified" : "Verifying"}
+ </StatusBadge>
+ );
+}
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/compliance-button.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/compliance-button.tsx
new file mode 100644
index 0000000000..02c1d35cbc
--- /dev/null
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/compliance-button.tsx
@@ -0,0 +1,38 @@
+"use client";
+
+import { refreshComplianceFlowAction } from "@/lib/actions/refresh-compliance-flow";
+import useWorkspace from "@/lib/swr/use-workspace";
+import { Button } from "@dub/ui";
+import { useAction } from "next-safe-action/hooks";
+import { toast } from "sonner";
+
+export const ComplianceButton = () => {
+ const { id: workspaceId } = useWorkspace();
+
+ const { executeAsync, isExecuting } = useAction(refreshComplianceFlowAction, {
+ async onSuccess({ data }) {
+ if (!data?.link) {
+ return;
+ }
+
+ window.open(data.link, "_blank");
+ },
+ onError({ error }) {
+ toast.error(error.serverError?.serverError);
+ },
+ });
+
+ const onSubmit = async () => {
+ await executeAsync({ workspaceId: workspaceId! });
+ };
+
+ return (
+ <Button
+ variant="secondary"
+ text="Submit KYB compliance"
+ onClick={onSubmit}
+ loading={isExecuting}
+ className="w-fit"
+ />
+ );
+};
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/compliance-flow.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/compliance-flow.tsx
deleted file mode 100644
index fd55620743..0000000000
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/compliance-flow.tsx
+++ /dev/null
@@ -1,56 +0,0 @@
-"use client";
-
-import { refreshComplianceFlowAction } from "@/lib/actions/refresh-compliance-flow";
-import useWorkspace from "@/lib/swr/use-workspace";
-import { Button } from "@dub/ui";
-import { CreditCard } from "lucide-react";
-import { useAction } from "next-safe-action/hooks";
-import { toast } from "sonner";
-
-export const ComplianceFlow = () => {
- const { id: workspaceId } = useWorkspace();
-
- const { executeAsync, isExecuting } = useAction(refreshComplianceFlowAction, {
- async onSuccess({ data }) {
- if (!data?.link) {
- return;
- }
-
- window.open(data.link, "_blank");
- },
- onError({ error }) {
- toast.error(error.serverError?.serverError);
- },
- });
-
- const onSubmit = async () => {
- await executeAsync({ workspaceId: workspaceId! });
- };
-
- return (
- <>
- <div className="flex items-center gap-5 rounded-lg border bg-white p-5">
- <div className="hidden h-12 w-12 items-center justify-center rounded-full border border-neutral-300 sm:inline-flex">
- <CreditCard className="h-5 w-5 text-gray-600" />
- </div>
-
- <div className="flex grow flex-col gap-1">
- <div className="text-base font-semibold text-gray-700">
- Submit compliance information
- </div>
- <div className="text-sm text-neutral-500">
- A URL will be generated for you to submit your KYB compliance.
- </div>
- </div>
-
- <div>
- <Button
- text="Submit KYB compliance"
- onClick={onSubmit}
- loading={isExecuting}
- />
- </div>
- </div>
- </>
- );
-};
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/page-client.tsx
index 612a507de8..35b7fc4152 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/page-client.tsx
@@ -5,13 +5,17 @@ import { useAddBankAccountModal } from "@/ui/modals/add-bank-account-modal";
import { AnimatedEmptyState } from "@/ui/shared/animated-empty-state";
import { Button } from "@dub/ui";
import { BadgeCheck, GreekTemple } from "@dub/ui/src/icons";
+import { truncate } from "@dub/utils";
import { BankAccount } from "./bank-account";
-import { ComplianceFlow } from "./compliance-flow";
-import { Transactions } from "./transactions";
+import { ComplianceButton } from "./compliance-button";
import { Wallet } from "./wallet";
export function PayoutsPageClient() {
- const { bankAccountName, dotsAppId } = useWorkspace();
+ const {
+ bankAccountName,
+ bankAccountVerified,
+ loading: isLoadingWorkspace,
+ } = useWorkspace();
const { AddBankAccountModal, setShowAddBankAccountModal } =
useAddBankAccountModal();
@@ -19,12 +23,37 @@ export function PayoutsPageClient() {
return (
<>
<AddBankAccountModal />
- {bankAccountName ? (
- <div className="relative grid gap-5 pb-10">
- <BankAccount />
- <ComplianceFlow />
- <Wallet />
- <Transactions />
+ {bankAccountName || isLoadingWorkspace ? (
+ <div className="rounded-lg border border-neutral-300 bg-white p-5">
+ <div className="flex flex-col justify-between gap-4 sm:flex-row sm:items-center">
+ <div className="flex items-center gap-5">
+ <div className="hidden size-12 items-center justify-center rounded-full border border-neutral-300 sm:flex">
+ <GreekTemple className="size- 5text-neutral-900" />
+ </div>
+ <div className="flex flex-col gap-1">
+ {bankAccountName ? (
+ <span className="text-base font-medium leading-none text-neutral-900">
+ {truncate(bankAccountName, 32)}
+ </span>
+ ) : (
+ <div className="h-4 w-32 animate-pulse rounded-md bg-neutral-200" />
+ )}
+ {bankAccountVerified !== undefined ? (
+ <span className="text-sm leading-none text-neutral-500">
+ {bankAccountVerified ? "Connected" : "Verifying"}
+ </span>
+ ) : (
+ <div className="h-3.5 w-16 animate-pulse rounded-md bg-neutral-200" />
+ )}
+ </div>
+ </div>
+
+ <ComplianceButton />
+ </div>
+ <div className="mt-5 grid divide-neutral-200 rounded-lg border border-neutral-200 bg-neutral-50 max-sm:divide-y sm:grid-cols-[repeat(2,minmax(0,1fr))] sm:divide-x">
+ <Wallet />
+ <BankAccount />
+ </div>
</div>
) : (
<AnimatedEmptyState
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/wallet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/wallet.tsx
index 92d8d46cfc..ebe4550192 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/wallet.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/wallet.tsx
@@ -1,53 +1,54 @@
"use client";
-import { DotsApp } from "@/lib/dots/types";
+import useDotsApp from "@/lib/swr/use-dots-app";
import useWorkspace from "@/lib/swr/use-workspace";
import { useDepositFundsModal } from "@/ui/modals/deposit-funds-modal";
import { Button } from "@dub/ui";
-import { fetcher } from "@dub/utils";
-import { CreditCard } from "lucide-react";
-import useSWR from "swr";
+import { currencyFormatter } from "@dub/utils";
export const Wallet = () => {
- const workspace = useWorkspace();
+ const { bankAccountVerified } = useWorkspace();
+ const { data, error } = useDotsApp();
+
+ const loading = !data && !error;
const { DepositFundsModal, setShowDepositFundsModal } =
useDepositFundsModal();
- // TODO:
- // Move this to a hook
- const { data, isLoading } = useSWR<DotsApp>(
- `/api/dots?workspaceId=${workspace.id}`,
- fetcher,
- );
-
return (
<>
<DepositFundsModal />
- <div className="flex items-center gap-5 rounded-lg border bg-white p-5">
- <div className="hidden h-12 w-12 items-center justify-center rounded-full border border-neutral-300 sm:inline-flex">
- <CreditCard className="h-5 w-5 text-gray-600" />
- </div>
+ <div className="flex flex-col p-4">
+ <div className="flex justify-between gap-5">
+ <div className="p-1">
+ <div className="text-sm text-neutral-500">Wallet</div>
+ </div>
- <div className="flex grow flex-col gap-1">
- <div className="flex items-center gap-2 text-base font-semibold text-gray-700">
- Wallet{" "}
- {isLoading ? (
- <div className="h-4 w-20 animate-pulse rounded bg-neutral-200" />
+ <div>
+ {bankAccountVerified !== undefined ? (
+ <Button
+ text="Deposit funds"
+ onClick={() => setShowDepositFundsModal(true)}
+ className="h-7 w-fit px-2"
+ disabled={!bankAccountVerified}
+ />
) : (
- `($${data?.metrics.wallet_balance})`
+ <div className="h-7 w-24 animate-pulse rounded-md bg-neutral-200" />
)}
</div>
- <div className="text-sm text-neutral-500">
- Wallet balance and transaction history.
- </div>
</div>
-
- <div>
- <Button
- text="Deposit funds"
- onClick={() => setShowDepositFundsModal(true)}
- />
+ <div className="mt-6 flex grow flex-col justify-end p-1">
+ {loading ? (
+ <div className="h-8 w-32 animate-pulse rounded bg-neutral-200" />
+ ) : (
+ <div className="text-2xl text-neutral-800">
+ {currencyFormatter(
+ parseFloat(data?.metrics.wallet_balance ?? "") / 100,
+ { minimumFractionDigits: 2, maximumFractionDigits: 2 },
+ )}{" "}
+ USD
+ </div>
+ )}
</div>
</div>
</>
diff --git a/apps/web/lib/actions/add-bank-account.ts b/apps/web/lib/actions/add-bank-account.ts
index 3ea79feabc..e072d1988a 100644
--- a/apps/web/lib/actions/add-bank-account.ts
+++ b/apps/web/lib/actions/add-bank-account.ts
@@ -48,6 +48,7 @@ export const addBankAccountAction = authActionClient
data: {
bankAccountName: achAccount.name,
partialAccountNumber: achAccount.mask,
+ routingNumber,
bankAccountVerified: false, // re-verify the bank account
},
});
diff --git a/apps/web/lib/dots/deposit-funds.ts b/apps/web/lib/dots/deposit-funds.ts
index 5cfa54c5a8..589da3534f 100644
--- a/apps/web/lib/dots/deposit-funds.ts
+++ b/apps/web/lib/dots/deposit-funds.ts
@@ -14,7 +14,7 @@ const statusSchema = z.enum([
const schema = z.object({
id: z.string(),
- amount: z.number(),
+ amount: z.string(),
status: statusSchema,
status_history: z.array(
z.object({
diff --git a/apps/web/lib/dots/schemas.ts b/apps/web/lib/dots/schemas.ts
index 06332e7beb..f49cdfcbfc 100644
--- a/apps/web/lib/dots/schemas.ts
+++ b/apps/web/lib/dots/schemas.ts
@@ -16,7 +16,10 @@ export const addBankAccountSchema = z.object({
});
export const depositFundsSchema = z.object({
- amount: z.string(),
+ amount: z.string().refine((amount) => {
+ const value = parseFloat(amount);
+ return !isNaN(value) && value >= 0.01 && value <= 100_000;
+ }),
});
export const dotsAppSchema = z.object({
diff --git a/apps/web/lib/swr/use-dots-app.ts b/apps/web/lib/swr/use-dots-app.ts
new file mode 100644
index 0000000000..8f56f8c5ab
--- /dev/null
+++ b/apps/web/lib/swr/use-dots-app.ts
@@ -0,0 +1,19 @@
+import { fetcher } from "@dub/utils";
+import useSWR from "swr";
+import { DotsApp } from "../dots/types";
+import useWorkspace from "./use-workspace";
+
+export default function useDotsApp() {
+ const { id: workspaceId } = useWorkspace();
+
+ const { data, error } = useSWR<DotsApp>(
+ workspaceId ? `/api/dots?workspaceId=${workspaceId}` : null,
+ fetcher,
+ );
+
+ return {
+ data,
+ error,
+ isLoading: !data && !error,
+ };
+}
diff --git a/apps/web/lib/zod/schemas/workspaces.ts b/apps/web/lib/zod/schemas/workspaces.ts
index 9797a352a6..103f4b778b 100644
--- a/apps/web/lib/zod/schemas/workspaces.ts
+++ b/apps/web/lib/zod/schemas/workspaces.ts
@@ -126,6 +126,12 @@ export const WorkspaceSchema = z
.describe(
"[BETA – Dub Partners]: The partial account number of the bank account.",
),
+ routingNumber: z
+ .string()
+ .nullable()
+ .describe(
+ "[BETA – Dub Partners]: The routing number of the bank account.",
+ ),
bankAccountVerified: z
.boolean()
.describe("[BETA – Dub Partners]: Whether the bank account is verified."),
diff --git a/apps/web/prisma/schema/workspace.prisma b/apps/web/prisma/schema/workspace.prisma
index 7ae8aacf16..d940bd8e9c 100644
--- a/apps/web/prisma/schema/workspace.prisma
+++ b/apps/web/prisma/schema/workspace.prisma
@@ -40,6 +40,7 @@ model Project {
dotsAppId String? @unique
bankAccountName String?
partialAccountNumber String?
+ routingNumber String?
bankAccountVerified Boolean @default(false)
users ProjectUsers[]
diff --git a/apps/web/ui/modals/deposit-funds-modal.tsx b/apps/web/ui/modals/deposit-funds-modal.tsx
index b0cca01b20..ff37f60292 100644
--- a/apps/web/ui/modals/deposit-funds-modal.tsx
+++ b/apps/web/ui/modals/deposit-funds-modal.tsx
@@ -2,6 +2,7 @@ import { depositFundsAction } from "@/lib/actions/deposit-funds";
import { depositFundsSchema } from "@/lib/dots/schemas";
import useWorkspace from "@/lib/swr/use-workspace";
import { Button, Modal } from "@dub/ui";
+import { cn } from "@dub/utils";
import { zodResolver } from "@hookform/resolvers/zod";
import { useAction } from "next-safe-action/hooks";
import { useCallback, useMemo, useState } from "react";
@@ -41,6 +42,7 @@ const DepositFundsForm = ({ closeModal }: { closeModal: () => void }) => {
formState: { isValid, isSubmitting },
} = useForm<z.infer<typeof depositFundsSchema>>({
resolver: zodResolver(depositFundsSchema),
+ mode: "onChange",
});
const { executeAsync, isExecuting } = useAction(depositFundsAction, {
@@ -63,20 +65,31 @@ const DepositFundsForm = ({ closeModal }: { closeModal: () => void }) => {
<div className="flex flex-col gap-y-6 px-4 text-left sm:px-6">
<div className="flex flex-col gap-3">
<div>
- <label htmlFor="amount" className="flex items-center space-x-2">
+ <label>
<h2 className="text-sm font-medium text-gray-900">Amount</h2>
+ <div className="relative mt-2 rounded-md shadow-sm">
+ <input
+ type="number"
+ className={cn(
+ "block w-full rounded-md border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm",
+ "pl-7 pr-12",
+
+ // Hide spin button
+ "[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
+ )}
+ autoFocus
+ autoComplete="off"
+ placeholder="100.00"
+ {...register("amount")}
+ />
+ <div className="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-sm text-neutral-400">
+ $
+ </div>
+ <div className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-sm text-neutral-400">
+ USD
+ </div>
+ </div>
</label>
- <div className="relative mt-2 rounded-md shadow-sm">
- <input
- {...register("amount")}
- type="number"
- className="block w-full rounded-md border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm"
- required
- autoFocus
- autoComplete="off"
- placeholder="100.00"
- />
- </div>
</div>
</div>
</div>
diff --git a/packages/ui/src/icons/nucleo/greek-temple.tsx b/packages/ui/src/icons/nucleo/greek-temple.tsx
index 094cfbda5f..086659f314 100644
--- a/packages/ui/src/icons/nucleo/greek-temple.tsx
+++ b/packages/ui/src/icons/nucleo/greek-temple.tsx
@@ -7,55 +7,74 @@ export function GreekTemple(props: SVGProps<SVGSVGElement>) {
width="18"
viewBox="0 0 18 18"
xmlns="http://www.w3.org/2000/svg"
- fill="none"
{...props}
>
- <path
- d="M2.44434 14.0557H13.5554"
- stroke="currentColor"
- strokeWidth="1.5"
- strokeLinecap="round"
- strokeLinejoin="round"
- />
- <path
- d="M7.99989 6.94449H12.6666C13.1572 6.94449 13.5554 6.54627 13.5554 6.0556V5.6876C13.5554 5.36583 13.3812 5.06894 13.1012 4.9116L8.43456 2.29827C8.16434 2.14716 7.83545 2.14716 7.56611 2.29827L2.89856 4.91249C2.61767 5.06983 2.44434 5.36671 2.44434 5.68849V6.05649C2.44434 6.54716 2.84256 6.94538 3.33322 6.94538L7.99989 6.94449Z"
- stroke="currentColor"
- strokeWidth="1.5"
- strokeLinecap="round"
- strokeLinejoin="round"
- />
- <path
- d="M6.44434 14.0556V9.16675"
- stroke="currentColor"
- strokeWidth="1.5"
- strokeLinecap="round"
- strokeLinejoin="round"
- />
- <path
- d="M3.33325 14.0556V9.16675"
- stroke="currentColor"
- strokeWidth="1.5"
- strokeLinecap="round"
- strokeLinejoin="round"
- />
- <path
- d="M9.55542 14.0556V9.16675"
- stroke="currentColor"
- strokeWidth="1.5"
- strokeLinecap="round"
- strokeLinejoin="round"
- />
- <path
- d="M12.6665 14.0556V9.16675"
- stroke="currentColor"
- strokeWidth="1.5"
- strokeLinecap="round"
- strokeLinejoin="round"
- />
- <path
- d="M7.99997 5.61115C8.49089 5.61115 8.88886 5.21318 8.88886 4.72226C8.88886 4.23134 8.49089 3.83337 7.99997 3.83337C7.50905 3.83337 7.11108 4.23134 7.11108 4.72226C7.11108 5.21318 7.50905 5.61115 7.99997 5.61115Z"
- fill="currentColor"
- />
+ <g fill="currentColor">
+ <line
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ x1="2.75"
+ x2="15.25"
+ y1="15.25"
+ y2="15.25"
+ />
+ <line
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ x1="7.25"
+ x2="7.25"
+ y1="15.25"
+ y2="9.75"
+ />
+ <line
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ x1="3.75"
+ x2="3.75"
+ y1="15.25"
+ y2="9.75"
+ />
+ <line
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ x1="10.75"
+ x2="10.75"
+ y1="15.25"
+ y2="9.75"
+ />
+ <line
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ x1="14.25"
+ x2="14.25"
+ y1="15.25"
+ y2="9.75"
+ />
+ <path
+ d="M9,7.25h5.25c.552,0,1-.448,1-1v-.414c0-.362-.196-.696-.511-.873l-5.25-2.94c-.304-.17-.674-.17-.977,0L3.261,4.964c-.316,.177-.511,.511-.511,.873v.414c0,.552,.448,1,1,1h5.25Z"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
+ />
+ <circle cx="9" cy="4.75" fill="currentColor" r="1" stroke="none" />
+ </g>
</svg>
);
}