21 lines
620 B
TypeScript
21 lines
620 B
TypeScript
"use client";
|
|
|
|
import type { TaskMR } from "@/lib/types/gitlab";
|
|
import { TaskRowIndicator } from "@/components/integrations/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")}
|
|
/>
|
|
);
|
|
}
|