Files
kandev/apps/web/components/gitlab/my-gitlab/mr-row-task-indicator.tsx
T
2026-08-05 15:14:26 +02:00

21 lines
624 B
TypeScript

"use client";
import type { TaskMR } from "@/lib/types/gitlab";
import { TaskRowIndicator } from "@/components/github/my-github/task-row-indicator";
import { useTranslation } from "react-i18next";
export function MRRowTaskIndicator({ tasks }: { tasks: TaskMR[] | undefined }) {
const { t } = useTranslation();
return (
<TaskRowIndicator
tasks={tasks?.map((association) => ({
id: association.id,
taskId: association.task_id,
fallbackTitle: association.mr_title,
}))}
testIdPrefix="gitlab-mr-row-task-indicator"
emptyLabel={t("gitlab:noTaskCreatedYet")}
/>
);
}