All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 6m24s
29 lines
644 B
TypeScript
29 lines
644 B
TypeScript
'use client';
|
|
|
|
import { EditableTitle } from './EditableTitle';
|
|
import { updateWeeklyCheckInSession } from '@/actions/weekly-checkin';
|
|
|
|
interface EditableWeeklyCheckInTitleProps {
|
|
sessionId: string;
|
|
initialTitle: string;
|
|
isOwner: boolean;
|
|
}
|
|
|
|
export function EditableWeeklyCheckInTitle({
|
|
sessionId,
|
|
initialTitle,
|
|
isOwner,
|
|
}: EditableWeeklyCheckInTitleProps) {
|
|
return (
|
|
<EditableTitle
|
|
sessionId={sessionId}
|
|
initialTitle={initialTitle}
|
|
isOwner={isOwner}
|
|
onUpdate={async (id, title) => {
|
|
const result = await updateWeeklyCheckInSession(id, { title });
|
|
return result;
|
|
}}
|
|
/>
|
|
);
|
|
}
|