import { Link } from 'react-router-dom'
import { StatusBadge } from '../components/StatusBadge.jsx'
import { PriorityBadge } from '../components/PriorityBadge.jsx'
export function ActionListItem({ action, showInitiative = false, manageLink }) {
return (
{action.title}
{showInitiative && action.initiative_title && (
{action.initiative_title}
)}
{action.description &&
{action.description}
}
{manageLink && (
Öffnen
)}
)
}
export function ActionList({ actions, empty, showInitiative, getManageLink }) {
if (!actions.length) return empty
return (
{actions.map((action) => (
))}
)
}