464343f5ab
* WIP * WIP * Type and migration fixes * Adds missing default import * Fixes import * Fixes tRPC imports in App Store * Migrate stripe helpers * WIP * Type fixes * Type fix? * WIP * WIP * Update index.ts * Fixes * Update workflow.tsx * Moved queries to lib * Moves QueryCell * Migrates MultiSelectCheckboxes * WIP * CryptoSection type fixes * WIP * Import fixes * Build fixes * Update app-providers.tsx * Build fixes * Upgrades hookform zod resolvers * Build fixes * Cleanup * Build fixes * Relocates QueryCell to ui * Moved List and SkeletonLoader * Revert QueryCell migration * Can't use QueryCell here * oops * CryptoSection cleanup * Update app-providers.tsx * Moved ee to features * ee to features/ee * Removes @calcom/ee * Adds possible feature locations * Build fixes * Migrates stripe to app-store lib * Colocates stripe imports * Update subscription.ts * Submodule sync Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import Link from "next/link";
|
|
import { ReactNode } from "react";
|
|
|
|
import { ListItem, ListItemText, ListItemTitle } from "@calcom/ui/List";
|
|
|
|
import classNames from "@lib/classNames";
|
|
|
|
function IntegrationListItem(props: {
|
|
imageSrc?: string;
|
|
slug: string;
|
|
title: string;
|
|
description: string;
|
|
actions?: ReactNode;
|
|
children?: ReactNode;
|
|
}): JSX.Element {
|
|
return (
|
|
<ListItem expanded={!!props.children} className={classNames("flex-col")}>
|
|
<div className={classNames("flex w-full flex-1 items-center space-x-2 p-3 rtl:space-x-reverse")}>
|
|
{
|
|
// eslint-disable-next-line @next/next/no-img-element
|
|
props.imageSrc && <img className="h-10 w-10" src={props.imageSrc} alt={props.title} />
|
|
}
|
|
<div className="flex-grow truncate pl-2">
|
|
<ListItemTitle component="h3">
|
|
<Link href={"/apps/" + props.slug}>{props.title}</Link>
|
|
</ListItemTitle>
|
|
<ListItemText component="p">{props.description}</ListItemText>
|
|
</div>
|
|
<div>{props.actions}</div>
|
|
</div>
|
|
{props.children && <div className="w-full border-t border-gray-200">{props.children}</div>}
|
|
</ListItem>
|
|
);
|
|
}
|
|
|
|
export default IntegrationListItem;
|