@devries-cameron20 / composio Mirror · read-only / commits / dcbd9c85c
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 08:15 UTC

refactor(docs): share DecimalAPI type between components

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmithamallesh committed Feb 19, 2026 at 16:17 UTC dcbd9c85cb876d8e2ddaeaf076b94c948c9990e2
2 files changed +2 -6
docs/components/ask-ai-button.tsx
+1 -5
@@ -5,11 +5,7 @@ import { Search, MessageSquare } from 'lucide-react';
5 import { useSearchContext } from '@fumadocs/ui/contexts/search';
6 import { useI18n } from '@fumadocs/ui/contexts/i18n';
7
8 -type DecimalAPI = {
9 - show: () => void;
10 - hide: () => void;
11 - theme: (config: Record<string, string>) => void;
12 -};
8 +import type { DecimalAPI } from './decimal-widget';
9
10 function getDecimal() {
11 return (window as typeof window & { Decimal?: DecimalAPI }).Decimal;
docs/components/decimal-widget.tsx
+1 -1
@@ -3,7 +3,7 @@
3 import Script from 'next/script';
4 import { useEffect, useState } from 'react';
5
6 -type DecimalAPI = {
6 +export type DecimalAPI = {
7 show: () => void;
8 hide: () => void;
9 theme: (config: Record<string, string>) => void;