2025-01-03 11:21:26 +01:00
|
|
|
const TodoSettingsBlock = ( { todosData, className = '' } ) => {
|
2024-12-08 09:33:49 +01:00
|
|
|
if ( todosData.length === 0 ) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div
|
|
|
|
className={ `ppcp-r-settings-block__todo ppcp-r-todo-items ${ className }` }
|
|
|
|
>
|
|
|
|
{ todosData.map( ( todo ) => (
|
2025-01-03 11:21:26 +01:00
|
|
|
<TodoItem key={ todo.id } title={ todo.title } />
|
2024-12-08 09:33:49 +01:00
|
|
|
) ) }
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
const TodoItem = ( props ) => {
|
|
|
|
return (
|
|
|
|
<div className="ppcp-r-todo-item">
|
|
|
|
<div className="ppcp-r-todo-item__inner">
|
2024-12-11 09:23:01 +01:00
|
|
|
<div className="ppcp-r-todo-item__icon"></div>
|
2024-12-08 09:33:49 +01:00
|
|
|
<div className="ppcp-r-todo-item__description">
|
2025-01-03 11:21:26 +01:00
|
|
|
{ props.title }
|
2024-12-08 09:33:49 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default TodoSettingsBlock;
|