import streamlit as st
from task import Task

task_list = [Task("Buy milk"), Task("Buy milk")]

st.header("Today's to-dos:", divider="gray")
for idx in range(len(task_list)):
    task = task_list[idx]
    task_col, delete_col = st.columns([0.8, 0.2])
    task_col.checkbox(task.name, task.is_done, key=f"task_{idx}")
    if delete_col.button("Delete", key=f"delete_{idx}"):
        pass
