feat(app): add weather widget

This commit is contained in:
ItzCrazyKns
2025-05-30 08:36:08 +05:30
parent 740ff941a5
commit ccb72c8970
3 changed files with 316 additions and 3 deletions

View File

@ -1,8 +1,9 @@
import { Settings } from 'lucide-react';
import EmptyChatMessageInput from './EmptyChatMessageInput';
import { useState } from 'react';
import { useEffect, useState } from 'react';
import { File } from './ChatWindow';
import Link from 'next/link';
import WeatherWidget from './WeatherWidget';
const EmptyChat = ({
sendMessage,
@ -25,8 +26,6 @@ const EmptyChat = ({
files: File[];
setFiles: (files: File[]) => void;
}) => {
const [isSettingsOpen, setIsSettingsOpen] = useState(false);
return (
<div className="relative">
<div className="absolute w-full flex flex-row items-center justify-end mr-5 mt-5">
@ -49,6 +48,11 @@ const EmptyChat = ({
files={files}
setFiles={setFiles}
/>
<div className="flex flex-col w-full gap-4 mt-2 sm:flex-row sm:justify-center">
<div className="flex-1 max-w-xs">
<WeatherWidget />
</div>
</div>
</div>
</div>
);