import { Table, TableBody, TableCell, TableRow, Text } from "@tremor/react"; import { getUserAvatarUrl } from "@calcom/lib/getAvatarUrl"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import type { User } from "@calcom/prisma/client"; import { Avatar, EmptyScreen, Button } from "@calcom/ui"; export const FeedbackTable = ({ data, }: { data: | { userId: number | null; user: Pick; emailMd5?: string; username?: string; rating: number | null; feedback: string | null; }[] | undefined; }) => { const { t } = useLocale(); return ( <> {data && data?.length > 0 ? ( data?.map((item) => (

{item.user.name}

{item.rating} {item.feedback}
)) ) : ( {t("workflows")} } /> )}
); };