import streamlit as st
def render_content_card(row, is_editing, on_edit, on_delete, on_generate, icon_map, status_color, platform_disp, type_disp, status_disp, platform_icon, type_icon, item_key):
st.markdown(f"
", unsafe_allow_html=True)
st.markdown(f"
", unsafe_allow_html=True)
st.markdown(f"
"
f"{type_icon}{row['title']}
", unsafe_allow_html=True)
st.markdown("
", unsafe_allow_html=True)
col1, col2, col3 = st.columns([1, 1, 1])
with col1:
if st.button("⚡", key=f"generate_{item_key}", help="Generate with AI Blog Writer", use_container_width=True):
on_generate()
with col2:
if st.button("✏️", key=f"edit_{item_key}", help="Edit Content", use_container_width=True):
on_edit()
with col3:
if st.button("🗑️", key=f"delete_{item_key}", help="Delete Content", use_container_width=True):
on_delete()
st.markdown("
", unsafe_allow_html=True)
st.markdown("
", unsafe_allow_html=True)
st.markdown(f"
{platform_icon} {platform_disp} | {type_disp} | {status_disp}
", unsafe_allow_html=True)
st.markdown("
", unsafe_allow_html=True)