Files
workshop-manager/src/components/ui/EditableWeatherTitle.tsx
2026-02-03 18:08:06 +01:00

29 lines
607 B
TypeScript

'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 (
<EditableTitle
sessionId={sessionId}
initialTitle={initialTitle}
isOwner={isOwner}
onUpdate={async (id, title) => {
const result = await updateWeatherSession(id, { title });
return result;
}}
/>
);
}