From e586d7d704d475afe3373a1de6ae20d504f79d6d Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
 <41898282+github-actions[bot]@users.noreply.github.com>
Date: Thu, 5 Jun 2025 14:25:23 +0000
Subject: Sync from a8e1c0a7402940e0fc5beef669522b315052df1b

---
 examples/with-nanostores/src/components/CartFlyoutToggle.tsx | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 examples/with-nanostores/src/components/CartFlyoutToggle.tsx

(limited to 'examples/with-nanostores/src/components/CartFlyoutToggle.tsx')

diff --git a/examples/with-nanostores/src/components/CartFlyoutToggle.tsx b/examples/with-nanostores/src/components/CartFlyoutToggle.tsx
new file mode 100644
index 000000000..14ce1c70d
--- /dev/null
+++ b/examples/with-nanostores/src/components/CartFlyoutToggle.tsx
@@ -0,0 +1,7 @@
+import { useStore } from '@nanostores/preact';
+import { isCartOpen } from '../cartStore';
+
+export default function CartFlyoutToggle() {
+	const $isCartOpen = useStore(isCartOpen);
+	return <button onClick={() => isCartOpen.set(!$isCartOpen)}>Cart</button>;
+}
-- 
cgit v1.2.3

