Get rid of custom components folder
This commit is contained in:
parent
c493ac342b
commit
6d16f67280
38 changed files with 34 additions and 34 deletions
|
|
@ -4,9 +4,9 @@ import Link from 'next/link';
|
|||
import { useRouter } from 'next/navigation';
|
||||
import { type User } from 'next-auth';
|
||||
|
||||
import { PlusIcon } from '@/components/custom/icons';
|
||||
import { SidebarHistory } from '@/components/custom/sidebar-history';
|
||||
import { SidebarUserNav } from '@/components/custom/sidebar-user-nav';
|
||||
import { PlusIcon } from '@/components/icons';
|
||||
import { SidebarHistory } from '@/components/sidebar-history';
|
||||
import { SidebarUserNav } from '@/components/sidebar-user-nav';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
Sidebar,
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import Form from 'next/form';
|
||||
|
||||
import { Input } from '../ui/input';
|
||||
import { Label } from '../ui/label';
|
||||
import { Input } from './ui/input';
|
||||
import { Label } from './ui/label';
|
||||
|
||||
export function AuthForm({
|
||||
action,
|
||||
|
|
@ -29,8 +29,8 @@ import { MultimodalInput } from './multimodal-input';
|
|||
import { Toolbar } from './toolbar';
|
||||
import { useScrollToBottom } from './use-scroll-to-bottom';
|
||||
import { VersionFooter } from './version-footer';
|
||||
import { Button } from '../ui/button';
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip';
|
||||
import { Button } from './ui/button';
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from './ui/tooltip';
|
||||
export interface UIBlock {
|
||||
title: string;
|
||||
documentId: string;
|
||||
|
|
@ -4,13 +4,13 @@ import Link from 'next/link';
|
|||
import { useRouter } from 'next/navigation';
|
||||
import { useWindowSize } from 'usehooks-ts';
|
||||
|
||||
import { ModelSelector } from '@/components/custom/model-selector';
|
||||
import { SidebarToggle } from '@/components/custom/sidebar-toggle';
|
||||
import { ModelSelector } from '@/components/model-selector';
|
||||
import { SidebarToggle } from '@/components/sidebar-toggle';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { BetterTooltip } from '@/components/ui/tooltip';
|
||||
|
||||
import { PlusIcon, VercelIcon } from './icons';
|
||||
import { useSidebar } from '../ui/sidebar';
|
||||
import { useSidebar } from './ui/sidebar';
|
||||
|
||||
export function ChatHeader({ selectedModelId }: { selectedModelId: string }) {
|
||||
const router = useRouter();
|
||||
|
|
@ -7,9 +7,9 @@ import { useState } from 'react';
|
|||
import useSWR, { useSWRConfig } from 'swr';
|
||||
import { useWindowSize } from 'usehooks-ts';
|
||||
|
||||
import { ChatHeader } from '@/components/custom/chat-header';
|
||||
import { PreviewMessage, ThinkingMessage } from '@/components/custom/message';
|
||||
import { useScrollToBottom } from '@/components/custom/use-scroll-to-bottom';
|
||||
import { ChatHeader } from '@/components/chat-header';
|
||||
import { PreviewMessage, ThinkingMessage } from '@/components/message';
|
||||
import { useScrollToBottom } from '@/components/use-scroll-to-bottom';
|
||||
import { Vote } from '@/lib/db/schema';
|
||||
import { fetcher } from '@/lib/utils';
|
||||
|
||||
|
|
@ -7,13 +7,13 @@ import { Vote } from '@/lib/db/schema';
|
|||
import { getMessageIdFromAnnotations } from '@/lib/utils';
|
||||
|
||||
import { CopyIcon, ThumbDownIcon, ThumbUpIcon } from './icons';
|
||||
import { Button } from '../ui/button';
|
||||
import { Button } from './ui/button';
|
||||
import {
|
||||
Tooltip,
|
||||
TooltipContent,
|
||||
TooltipProvider,
|
||||
TooltipTrigger,
|
||||
} from '../ui/tooltip';
|
||||
} from './ui/tooltip';
|
||||
|
||||
export function MessageActions({
|
||||
chatId,
|
||||
|
|
@ -19,8 +19,8 @@ import { sanitizeUIMessages } from '@/lib/utils';
|
|||
|
||||
import { ArrowUpIcon, PaperclipIcon, StopIcon } from './icons';
|
||||
import { PreviewAttachment } from './preview-attachment';
|
||||
import { Button } from '../ui/button';
|
||||
import { Textarea } from '../ui/textarea';
|
||||
import { Button } from './ui/button';
|
||||
import { Textarea } from './ui/textarea';
|
||||
|
||||
const suggestedActions = [
|
||||
{
|
||||
|
|
@ -8,7 +8,7 @@ import { useEffect, useState } from 'react';
|
|||
import { toast } from 'sonner';
|
||||
import useSWR from 'swr';
|
||||
|
||||
import { MoreHorizontalIcon, TrashIcon } from '@/components/custom/icons';
|
||||
import { MoreHorizontalIcon, TrashIcon } from '@/components/icons';
|
||||
import {
|
||||
AlertDialog,
|
||||
AlertDialogAction,
|
||||
|
|
@ -5,7 +5,7 @@ import { BetterTooltip } from '@/components/ui/tooltip';
|
|||
import { cn } from '@/lib/utils';
|
||||
|
||||
import { SidebarLeftIcon } from './icons';
|
||||
import { Button } from '../ui/button';
|
||||
import { Button } from './ui/button';
|
||||
|
||||
export function SidebarToggle({
|
||||
className,
|
||||
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
import { useFormStatus } from 'react-dom';
|
||||
|
||||
import { LoaderIcon } from '@/components/custom/icons';
|
||||
import { LoaderIcon } from '@/components/icons';
|
||||
|
||||
import { Button } from '../ui/button';
|
||||
import { Button } from './ui/button';
|
||||
|
||||
export function SubmitButton({
|
||||
children,
|
||||
|
|
@ -7,7 +7,7 @@ import { useWindowSize } from 'usehooks-ts';
|
|||
import { UISuggestion } from '@/lib/editor/suggestions';
|
||||
|
||||
import { CrossIcon, MessageIcon } from './icons';
|
||||
import { Button } from '../ui/button';
|
||||
import { Button } from './ui/button';
|
||||
|
||||
export const Suggestion = ({
|
||||
suggestion,
|
||||
|
|
@ -26,7 +26,7 @@ import {
|
|||
StopIcon,
|
||||
SummarizeIcon,
|
||||
} from './icons';
|
||||
import { Button } from '../ui/button';
|
||||
import { Button } from './ui/button';
|
||||
|
||||
type ToolProps = {
|
||||
type: 'final-polish' | 'request-suggestions' | 'adjust-reading-level';
|
||||
|
|
@ -11,7 +11,7 @@ import { getDocumentTimestampByIndex } from '@/lib/utils';
|
|||
|
||||
import { UIBlock } from './block';
|
||||
import { LoaderIcon } from './icons';
|
||||
import { Button } from '../ui/button';
|
||||
import { Button } from './ui/button';
|
||||
|
||||
interface VersionFooterProps {
|
||||
block: UIBlock;
|
||||
Loading…
Add table
Add a link
Reference in a new issue