json.partial! 'course/lesson_plan/items/item.json.jbuilder', item: item

json.item_path course_videos_path(current_course)
json.description item.description
json.edit_path edit_course_video_path(current_course, item) if can?(:update, item)
json.delete_path course_video_path(current_course, item) if can?(:destroy, item)
type = current_component_host[:course_videos_component].try(:title) || t('components.video.name')
json.lesson_plan_item_type [type]

Implement lesson_plan_item type for video
Implement lesson_plan_item type for video
