import { getUserAvatarUrl } from "@calcom/lib/getAvatarUrl"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import type { User } from "@calcom/prisma/client"; import { Avatar } from "@calcom/ui/components/avatar"; import { Button } from "@calcom/ui/components/button"; import { EmptyScreen } from "@calcom/ui/components/empty-screen"; import { Tooltip } from "@calcom/ui/components/tooltip"; 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")} } /> )}
); };