Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(frontend): add AgentPromptButton for AI agent deeplinks (#59959)

Catalin Irimie2efed1db90b6
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 452e27e47d35..ee111857e948 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -48,6 +48,18 @@ snapshots:
hash: v1.k794b7964.ba74e0673aad485dababda7d3693a74a566eddcf72b8aee6d56d508ce023eb1f.Bapi-Sd2vScIQaD_VcQJC1Hif9yVxfClhdp6fsq8RrM
components-activitylog--without-audit-logs-feaure--light:
hash: v1.k794b7964.e1c2c1beb5b527237d34272e77be4001f8e44a702e48c6c7f9a7649517ed7da4.scI5oUAoI84QtYEMfLVG7ev9KQR1pRhZk4ko_DNMKdo
+ components-agentpromptbutton--default--dark:
+ hash: v1.k794b7964.176d9b949b5f282db8bdef42454c33d68c4cc3b1ac633434fc3d3851fbd00bf2._ze7i1v6SHHaO7VZb0101_Cww3vYDh24XUrTA1-7xNc
+ components-agentpromptbutton--default--light:
+ hash: v1.k794b7964.7bfafd28a62fb737c905c84e01856554620e20c24c26df204e453c64cd1a87a1.AygzPAqeWcAM6JEhILXPBLP_F16CFRoNG0Ws5bwKx0A
+ components-agentpromptbutton--open-dropdown--dark:
+ hash: v1.k794b7964.f849ac7c10f6d991c1a2476ed411ba03abd030916584b8fa643aa1e0d1b1b2ea.9BbmU5-kB77Ht7a_RieH_qbiS05Qpd-1qWheEXXj0jY
+ components-agentpromptbutton--open-dropdown--light:
+ hash: v1.k794b7964.55be9bfd41f87ac54d32d47ebe774eabe43f7c642e0ac0989e63219494a456e5.uF1tFepT5-HlQB8c9FRFsFO3iKd7nwr4lCiGf907FWE
+ components-agentpromptbutton--single-action--dark:
+ hash: v1.k794b7964.176d9b949b5f282db8bdef42454c33d68c4cc3b1ac633434fc3d3851fbd00bf2.97tk4-TSPr2ILL7RuWxH8pDESqmKZvqu6OP0j2v6B5w
+ components-agentpromptbutton--single-action--light:
+ hash: v1.k794b7964.7bfafd28a62fb737c905c84e01856554620e20c24c26df204e453c64cd1a87a1.SuUHJtczWEWsNdJH3kHwt51qA8OVQs7mdhnCOy1Fq-g
components-alerts-alert-history-chart--anomaly-probability-cutoff--dark:
hash: v1.k794b7964.d0374e105e61243ef45514a12a596158f77abdd919b71a0beefbbde40195d81e.ryvpGdgbZeUbFdFjXW7LvZ7LPLdsw5MXBY0Dot8IR4w
components-alerts-alert-history-chart--anomaly-probability-cutoff--light:
@@ -1871,7 +1883,7 @@ snapshots:
filters-taxonomic-filter-headless--properties--dark:
hash: v1.k794b7964.4ee695e5751c6f73e9742ab0cfeecf61b5adfe829cf3a0d49ab2877cae8b212f.jPN9l5TDgLRy9NzHenXHCU903UDg8-GdeGpf4PXt7aA
filters-taxonomic-filter-headless--properties--light:
- hash: v1.k794b7964.7af6b884e5d826df422db99e4a99d2172f3316561a499dbe386ea098b1fc54a9.rti2DMpqC0WEtd_AtG838vQlgQMHfwjBAR4uLN_HnUk
+ hash: v1.k794b7964.afa422fd784363e602da5668ab488a823260acba8c2b1168dc85bcbf434d3ddf.Wjl32UIE5KhBda_SpJYwXKZ2FGmnlFbtzv4uKDaJRIs
filters-taxonomic-filter-headless--suggested-filters-with-recents--dark:
hash: v1.k794b7964.c3a6cd419610bc486261efa753816547f080f00c838bde0b8720cf12067b3b22.nxBtExiDfJ3USkhV9RY1VPU_U2dGyEYCMFbhvtOcuVs
filters-taxonomic-filter-headless--suggested-filters-with-recents--light:
@@ -4779,7 +4791,7 @@ snapshots:
scenes-app-insights-funnels--funnel-historical-trends-edit--light:
hash: v1.k794b7964.fa67675b6f95f0ae9c46eb0e803f9db69702419bb4ccc2d21ea973f9fe49d9cc.Zz4siV83g7nIXf96Nfvy6eN5rRtzwO3CEmv24KSztlA
scenes-app-insights-funnels--funnel-left-to-right-breakdown-edit--dark:
- hash: v1.k794b7964.2a18d8ba3f9634f9d7c9ece2ad8ee2f6716706ecbb30595102d003ca8ad27184.y6n_yOa8fbdhe6yHOtjclzfTFAJ9hj0Da0VbQIhaj2M
+ hash: v1.k794b7964.1df97c88a1076b096c08deccb8c4c291c13b6a4a59fb615e2d77254547381c48.gTsDByOCU_bfzNraCRF_0neMgtIfTq796QitehbRNVQ
scenes-app-insights-funnels--funnel-left-to-right-breakdown-edit--light:
hash: v1.k794b7964.414326f685dca45885b93d728ae8a75c7d8b600af35d76c9512a74a27e453006.IyZ8qHUwOv6qsBYvdUR1ZsK1Md_GNFCftDGvNZj78BQ
scenes-app-insights-funnels--funnel-left-to-right-edit--dark:
diff --git a/frontend/src/lib/components/AgentPromptButton/AgentPromptButton.stories.tsx b/frontend/src/lib/components/AgentPromptButton/AgentPromptButton.stories.tsx
new file mode 100644
index 000000000000..d778054354f0
--- /dev/null
+++ b/frontend/src/lib/components/AgentPromptButton/AgentPromptButton.stories.tsx
@@ -0,0 +1,74 @@
+import type { Meta, StoryObj } from '@storybook/react'
+
+import { IconBug, IconInfo, IconSearch } from '@posthog/icons'
+
+import { AgentPromptButton } from './AgentPromptButton'
+
+const meta = {
+ title: 'Components/AgentPromptButton',
+ component: AgentPromptButton,
+ parameters: {
+ layout: 'centered',
+ },
+} satisfies Meta<typeof AgentPromptButton>
+
+export default meta
+type Story = StoryObj<typeof meta>
+
+const ERROR_ACTIONS = [
+ {
+ key: 'fix',
+ label: 'Fix',
+ icon: <IconBug />,
+ buildPrompt: () =>
+ 'Please help me fix the root cause of this error. Here is the stack trace:\n\n```\nTypeError: Cannot read properties of undefined (reading "map")\n at UserList.render (UserList.tsx:42)\n```',
+ },
+ {
+ key: 'investigate',
+ label: 'Investigate',
+ icon: <IconSearch />,
+ buildPrompt: () =>
+ 'Please help me investigate this error and understand what is happening. Here is the stack trace:\n\n```\nTypeError: Cannot read properties of undefined (reading "map")\n at UserList.render (UserList.tsx:42)\n```',
+ },
+ {
+ key: 'explain',
+ label: 'Explain',
+ icon: <IconInfo />,
+ buildPrompt: () =>
+ 'Please explain this error in depth. What causes it and what are the possible remedies?\n\n```\nTypeError: Cannot read properties of undefined (reading "map")\n at UserList.render (UserList.tsx:42)\n```',
+ },
+]
+
+export const Default: Story = {
+ args: {
+ actions: ERROR_ACTIONS,
+ storageKey: 'story-agent-prompt-button',
+ },
+}
+
+export const OpenDropdown: Story = {
+ args: {
+ actions: ERROR_ACTIONS,
+ storageKey: 'story-agent-open-dropdown',
+ defaultOpen: true,
+ },
+ parameters: {
+ // Radix portals the dropdown content into document.body, outside #storybook-root,
+ // so snapshot the whole body to include it.
+ testOptions: { snapshotTargetSelector: 'body' },
+ },
+}
+
+export const SingleAction: Story = {
+ args: {
+ actions: [
+ {
+ key: 'fix',
+ label: 'Fix',
+ icon: <IconBug />,
+ buildPrompt: () => 'Fix this error.',
+ },
+ ],
+ storageKey: 'story-agent-single',
+ },
+}
diff --git a/frontend/src/lib/components/AgentPromptButton/AgentPromptButton.tsx b/frontend/src/lib/components/AgentPromptButton/AgentPromptButton.tsx
new file mode 100644
index 000000000000..274b8483a28e
--- /dev/null
+++ b/frontend/src/lib/components/AgentPromptButton/AgentPromptButton.tsx
@@ -0,0 +1,261 @@
+import { useState } from 'react'
+
+import { IconCopy, IconLogomark, IconMagicWand } from '@posthog/icons'
+
+import { useLocalStorage } from 'lib/hooks/useLocalStorage'
+import { ButtonGroupPrimitive, ButtonPrimitive, type ButtonSize } from 'lib/ui/Button/ButtonPrimitives'
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItemIndicator,
+ DropdownMenuLabel,
+ DropdownMenuRadioGroup,
+ DropdownMenuRadioItem,
+ DropdownMenuSeparator,
+ DropdownMenuTrigger,
+} from 'lib/ui/DropdownMenu/DropdownMenu'
+import { MenuOpenIndicator } from 'lib/ui/Menus/Menus'
+import { copyToClipboard } from 'lib/utils/copyToClipboard'
+import { cn } from 'lib/utils/css-classes'
+
+import claudeLogo from './logos/claude.svg'
+import cursorLogo from './logos/cursor.svg'
+import openaiLogo from './logos/openai.svg'
+
+export interface AgentPromptAction {
+ /** Stable key used for localStorage persistence */
+ key: string
+ label: string
+ icon?: React.ReactElement
+ /** Returns the prompt text for this action */
+ buildPrompt: () => string
+}
+
+export interface AgentPromptButtonProps {
+ actions: AgentPromptAction[]
+ /**
+ * Namespace for the localStorage key that persists the remembered combo.
+ * Pass a unique value per call-site to give that surface its own memory.
+ * When omitted, defaults to a key derived from the sorted action keys, so
+ * surfaces with the same action set share state and surfaces with different
+ * actions stay isolated.
+ */
+ storageKey?: string
+ size?: ButtonSize
+ /** Renders the dropdown open on first paint. Useful for visual regression snapshots. */
+ defaultOpen?: boolean
+ 'data-attr'?: string
+}
+
+interface RememberedCombo {
+ actionKey: string
+ agentKey: string | null
+}
+
+interface AgentDef {
+ key: string
+ name: string
+ /** Either a brand SVG URL (string from `import foo from './logos/foo.svg'`) or a React node */
+ logo: string | React.ReactElement
+ /** Extra classes applied to the rendered <img> for brand SVG logos (e.g. `dark:invert` for monochrome marks) */
+ logoClassName?: string
+ /**
+ * Builds the deeplink URL for this agent.
+ * Some agents double-encode or truncate prompts due to URL length limits.
+ */
+ buildDeepLink: (prompt: string) => string
+}
+
+/** Max prompt chars before truncation for agents that have strict URL length limits. */
+const LIMIT_LONG = 8_000
+const LIMIT_CLAUDE_CODE = 5_000
+const LIMIT_SHORT = 4_000
+
+function withLimit(prompt: string, maxChars: number, build: (p: string) => string): string {
+ return build(prompt.slice(0, maxChars))
+}
+
+const AGENTS: AgentDef[] = [
+ {
+ key: 'posthog-code',
+ name: 'PostHog Code',
+ logo: <IconLogomark className="size-4 shrink-0" />,
+ buildDeepLink: (p) => `posthog-code://new?prompt=${encodeURIComponent(p)}`,
+ },
+ {
+ key: 'claude-code',
+ name: 'Claude Code',
+ logo: claudeLogo,
+ buildDeepLink: (p) => withLimit(p, LIMIT_CLAUDE_CODE, (t) => `claude://code/new?q=${encodeURIComponent(t)}`),
+ },
+ {
+ key: 'cursor',
+ name: 'Cursor',
+ logo: cursorLogo,
+ // Cursor wordmark is solid black; invert in dark mode so it stays visible
+ logoClassName: 'dark:invert',
+ buildDeepLink: (p) =>
+ // Cursor decodes the full deeplink before parsing query params, so reserved chars need an extra escape layer.
+ withLimit(
+ p,
+ LIMIT_LONG,
+ (t) => `cursor://anysphere.cursor-deeplink/prompt?text=${encodeURIComponent(encodeURIComponent(t))}`
+ ),
+ },
+ {
+ key: 'codex',
+ name: 'Codex',
+ logo: openaiLogo,
+ buildDeepLink: (p) => withLimit(p, LIMIT_SHORT, (t) => `codex://new?prompt=${encodeURIComponent(t)}`),
+ },
+]
+
+/** Sentinel agentKey for the "Copy to clipboard" option. Stored alongside real agent keys. */
+const CLIPBOARD_KEY = 'clipboard'
+
+function invokeAgent(agent: AgentDef, prompt: string): void {
+ window.open(agent.buildDeepLink(prompt), '_blank')
+}
+
+function AgentLogo({ agent }: { agent: AgentDef }): JSX.Element {
+ if (typeof agent.logo !== 'string') {
+ return agent.logo
+ }
+ return (
+ <img
+ src={agent.logo}
+ alt=""
+ aria-hidden
+ className={cn('size-4 shrink-0 object-contain', agent.logoClassName)}
+ />
+ )
+}
+
+export function AgentPromptButton({
+ actions,
+ storageKey,
+ size = 'sm',
+ defaultOpen = false,
+ 'data-attr': dataAttr,
+}: AgentPromptButtonProps): JSX.Element | null {
+ const resolvedStorageKey =
+ storageKey ??
+ `agent-prompt-button:${actions
+ .map((a) => a.key)
+ .sort()
+ .join(',')}`
+ const [remembered, setRemembered] = useLocalStorage<RememberedCombo | null>(`${resolvedStorageKey}:combo`, null)
+ const [open, setOpen] = useState(defaultOpen)
+
+ if (actions.length === 0) {
+ return null
+ }
+
+ const activeAction = (remembered ? actions.find((a) => a.key === remembered.actionKey) : null) ?? actions[0]
+ const activeAgent = remembered?.agentKey ? (AGENTS.find((a) => a.key === remembered.agentKey) ?? null) : null
+ const isClipboard = remembered?.agentKey === CLIPBOARD_KEY
+ const hasTarget = !!activeAgent || isClipboard
+ // Empty state and clipboard both render as "with AI"; a real agent name overrides it
+ const targetName = activeAgent?.name ?? 'AI'
+ const buttonLabel = `${activeAction.label} with ${targetName}`
+
+ const selectAction = (actionKey: string): void => {
+ setRemembered({ actionKey, agentKey: remembered?.agentKey ?? null })
+ }
+
+ const runCombo = (actionKey: string, agentKey: string): void => {
+ const action = actions.find((a) => a.key === actionKey) ?? actions[0]
+ const prompt = action.buildPrompt()
+ if (agentKey === CLIPBOARD_KEY) {
+ void copyToClipboard(prompt, `${action.label.toLowerCase()} prompt`)
+ return
+ }
+ const agent = AGENTS.find((a) => a.key === agentKey)
+ if (agent) {
+ invokeAgent(agent, prompt)
+ }
+ }
+
+ const selectAgent = (agentKey: string): void => {
+ const actionKey = remembered?.actionKey ?? actions[0].key
+ setRemembered({ actionKey, agentKey })
+ setOpen(false)
+ // Picking an agent is the action — saves it as the favorite and runs immediately.
+ // The main button just re-runs the saved combo on subsequent clicks.
+ runCombo(actionKey, agentKey)
+ }
+
+ const handleMainClick = (): void => {
+ if (!hasTarget || !remembered?.agentKey) {
+ setOpen(true)
+ return
+ }
+ runCombo(remembered.actionKey, remembered.agentKey)
+ }
+
+ return (
+ <DropdownMenu open={open} onOpenChange={setOpen}>
+ <ButtonGroupPrimitive size={size} groupVariant="outline">
+ <ButtonPrimitive
+ onClick={handleMainClick}
+ data-attr={dataAttr}
+ tooltip={hasTarget ? `Run: ${buttonLabel}` : 'Pick an agent first'}
+ >
+ <IconMagicWand className="shrink-0" />
+ <span className="truncate max-w-64">{buttonLabel}</span>
+ </ButtonPrimitive>
+ <DropdownMenuTrigger asChild>
+ <ButtonPrimitive iconOnly forceVariant variant="panel">
+ <MenuOpenIndicator direction="down" className="ml-0" />
+ </ButtonPrimitive>
+ </DropdownMenuTrigger>
+ </ButtonGroupPrimitive>
+
+ <DropdownMenuContent align="end" className="w-56">
+ {actions.length > 1 && (
+ <>
+ <DropdownMenuRadioGroup value={activeAction.key} onValueChange={selectAction}>
+ {actions.map((action) => (
+ <DropdownMenuRadioItem
+ key={action.key}
+ value={action.key}
+ asChild
+ onSelect={(e) => e.preventDefault()}
+ >
+ <ButtonPrimitive menuItem className="gap-1.5">
+ {action.icon}
+ <span className="truncate flex-1">{action.label}</span>
+ <DropdownMenuItemIndicator intent="radio" />
+ </ButtonPrimitive>
+ </DropdownMenuRadioItem>
+ ))}
+ </DropdownMenuRadioGroup>
+ {/* Direct child of the padding-less menu inner — drop the separator's
+ default -mx-1 so it doesn't overflow and trigger scroll shadows */}
+ <DropdownMenuSeparator className="mx-0" />
+ </>
+ )}
+ <DropdownMenuLabel>Open in</DropdownMenuLabel>
+ <DropdownMenuRadioGroup value={remembered?.agentKey ?? ''} onValueChange={selectAgent}>
+ {AGENTS.map((agent) => (
+ <DropdownMenuRadioItem key={agent.key} value={agent.key} asChild>
+ <ButtonPrimitive menuItem className="gap-1.5">
+ <AgentLogo agent={agent} />
+ <span className="truncate flex-1">{agent.name}</span>
+ <DropdownMenuItemIndicator intent="radio" />
+ </ButtonPrimitive>
+ </DropdownMenuRadioItem>
+ ))}
+ <DropdownMenuSeparator />
+ <DropdownMenuRadioItem value={CLIPBOARD_KEY} asChild>
+ <ButtonPrimitive menuItem className="gap-1.5">
+ <IconCopy className="shrink-0" />
+ <span className="truncate flex-1">Copy to clipboard</span>
+ <DropdownMenuItemIndicator intent="radio" />
+ </ButtonPrimitive>
+ </DropdownMenuRadioItem>
+ </DropdownMenuRadioGroup>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ )
+}
diff --git a/frontend/src/lib/components/AgentPromptButton/index.ts b/frontend/src/lib/components/AgentPromptButton/index.ts
new file mode 100644
index 000000000000..ea22d7d839b9
--- /dev/null
+++ b/frontend/src/lib/components/AgentPromptButton/index.ts
@@ -0,0 +1,2 @@
+export type { AgentPromptAction, AgentPromptButtonProps } from './AgentPromptButton'
+export { AgentPromptButton } from './AgentPromptButton'
diff --git a/frontend/src/lib/components/AgentPromptButton/logos/claude.svg b/frontend/src/lib/components/AgentPromptButton/logos/claude.svg
new file mode 100644
index 000000000000..29bb61bb9eed
--- /dev/null
+++ b/frontend/src/lib/components/AgentPromptButton/logos/claude.svg
@@ -0,0 +1 @@
+<svg fill="#D97757" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Claude</title><path d="m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z"/></svg>
\ No newline at end of file
diff --git a/frontend/src/lib/components/AgentPromptButton/logos/cursor.svg b/frontend/src/lib/components/AgentPromptButton/logos/cursor.svg
new file mode 100644
index 000000000000..14085aac899f
--- /dev/null
+++ b/frontend/src/lib/components/AgentPromptButton/logos/cursor.svg
@@ -0,0 +1 @@
+<svg fill="#000000" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Cursor</title><path d="M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"/></svg>
\ No newline at end of file
diff --git a/frontend/src/lib/components/AgentPromptButton/logos/openai.svg b/frontend/src/lib/components/AgentPromptButton/logos/openai.svg
new file mode 100644
index 000000000000..2312a7744253
--- /dev/null
+++ b/frontend/src/lib/components/AgentPromptButton/logos/openai.svg
@@ -0,0 +1,10 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 2406 2406">
+ <path d="M1 578.4C1 259.5 259.5 1 578.4 1h1249.1c319 0 577.5 258.5 577.5 577.4V2406H578.4C259.5 2406 1 2147.5 1 1828.6V578.4z" fill="#74aa9c"/>
+ <path id="a" d="M1107.3 299.1c-197.999 0-373.9 127.3-435.2 315.3L650 743.5v427.9c0 21.4 11 40.4 29.4 51.4l344.5 198.515V833.3h.1v-27.9L1372.7 604c33.715-19.52 70.44-32.857 108.47-39.828L1447.6 450.3C1361 353.5 1237.1 298.5 1107.3 299.1zm0 117.5-.6.6c79.699 0 156.3 27.5 217.6 78.4-2.5 1.2-7.4 4.3-11 6.1L952.8 709.3c-18.4 10.4-29.4 30-29.4 51.4V1248l-155.1-89.4V755.8c-.1-187.099 151.601-338.9 339-339.2z" fill="#fff"/>
+ <use xlink:href="#a" transform="rotate(60 1203 1203)"/>
+ <use xlink:href="#a" transform="rotate(120 1203 1203)"/>
+ <use xlink:href="#a" transform="rotate(180 1203 1203)"/>
+ <use xlink:href="#a" transform="rotate(240 1203 1203)"/>
+ <use xlink:href="#a" transform="rotate(300 1203 1203)"/>
+
+</svg>
\ No newline at end of file