'use client'; import { EditableTitle } from './EditableTitle'; import { updateWeatherSession } from '@/actions/weather'; interface EditableWeatherTitleProps { sessionId: string; initialTitle: string; isOwner: boolean; } export function EditableWeatherTitle({ sessionId, initialTitle, isOwner, }: EditableWeatherTitleProps) { return ( { const result = await updateWeatherSession(id, { title }); return result; }} /> ); }