diff --git a/apps/sim/app/(landing)/components/features/features.tsx b/apps/sim/app/(landing)/components/features/features.tsx index d7fafca3867..498ab5b2ced 100644 --- a/apps/sim/app/(landing)/components/features/features.tsx +++ b/apps/sim/app/(landing)/components/features/features.tsx @@ -1,4 +1,4 @@ -import { BuildCallout } from '@/app/(landing)/components/features/components/build-callout/build-callout' +import { BuildCallout } from '@/app/(landing)/components/features/components/build-callout' import { FeatureCard } from '@/app/(landing)/components/features/components/feature-card' import { IntegrationsCallout } from '@/app/(landing)/components/features/components/integrations-callout/integrations-callout' import { KnowledgeCallout } from '@/app/(landing)/components/features/components/knowledge-callout/knowledge-callout' diff --git a/apps/sim/app/(landing)/components/landing-preview/components/landing-preview-chat/chat-input.tsx b/apps/sim/app/(landing)/components/landing-preview/components/landing-preview-chat/chat-input.tsx deleted file mode 100644 index 7ce8c3c545f..00000000000 --- a/apps/sim/app/(landing)/components/landing-preview/components/landing-preview-chat/chat-input.tsx +++ /dev/null @@ -1,99 +0,0 @@ -'use client' - -import { useRef } from 'react' -import { ArrowUp, cn, Mic, Paperclip, Slash } from '@sim/emcn' - -interface LandingPreviewChatInputProps { - value: string - onChange?: (value: string) => void - onSubmit: () => void - placeholder: string - /** Locks the field (used while the demo auto-types). */ - readOnly?: boolean - /** Hides the caret (auto-type has no real cursor). */ - caretHidden?: boolean - /** Lifts the field with the home-view shadow (only the initial empty state). */ - shadow?: boolean -} - -const ICON_BUTTON = - 'flex size-[28px] flex-shrink-0 items-center justify-center rounded-full transition-colors hover-hover:bg-[var(--surface-1)]' - -/** - * The canonical Mothership chat input - a faithful copy of the workspace - * `UserInput`: a white, `rounded-[17px]` field with the text area on top and a - * control row beneath (attach + skills on the left, mic + send on the right). - * The send button carries the real `SEND_BUTTON` fills (`#383838` active, - * `#808080` disabled). Shared by the home empty state and the docked chat pane - * so both read identically. - */ -export function LandingPreviewChatInput({ - value, - onChange, - onSubmit, - placeholder, - readOnly = false, - caretHidden = false, - shadow = false, -}: LandingPreviewChatInputProps) { - const textareaRef = useRef(null) - const isEmpty = value.trim().length === 0 - - return ( -
textareaRef.current?.focus()} - className={cn( - 'cursor-text rounded-[17px] border border-[var(--border-1)] bg-[var(--surface-2)] px-2.5 py-2', - shadow && 'shadow-[0_1px_2px_0_rgba(18,18,18,0.05)]' - )} - > -