import config from "../config.ts"; interface EditableTitleProps { title: string; canEdit: boolean; editAction: string; bodyFieldName: string; bodyValue: string; } export function EditableTitle({ title, canEdit, editAction, bodyFieldName, bodyValue, }: EditableTitleProps) { return ( <> {canEdit && ( )}

{title}

{canEdit && ( <>
)}
); }