2022-11-23 02:55:25 +00:00
|
|
|
import { Button } from "@calcom/ui";
|
2022-10-15 08:05:37 +00:00
|
|
|
|
2023-02-16 22:39:57 +00:00
|
|
|
import type { Template } from "./AppSettingsInterface";
|
2022-10-15 08:05:37 +00:00
|
|
|
|
|
|
|
export default function TemplateCard({ template }: { template: Template }) {
|
|
|
|
return (
|
2023-03-09 10:22:30 +00:00
|
|
|
<div className="min-h-16 sticky flex flex-col justify-between gap-4 rounded-md border border-gray-200 bg-white p-5">
|
2023-02-17 11:12:20 +00:00
|
|
|
<div className="flex items-start justify-start">
|
2022-10-15 08:05:37 +00:00
|
|
|
<div>
|
2022-11-06 16:09:10 +00:00
|
|
|
<div className="mr-4 flex h-12 w-12 items-center justify-center rounded-md p-1">
|
2022-10-15 08:05:37 +00:00
|
|
|
<img className="h-8" alt={template.app} src={`/api/app-store/zapier/${template.icon}`} />
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-06 16:09:10 +00:00
|
|
|
<div className="mr-4">
|
2022-10-15 08:05:37 +00:00
|
|
|
<div>
|
2023-01-12 16:57:43 +00:00
|
|
|
<p className="truncate text-sm font-medium leading-4 text-gray-900">{template.app}</p>
|
2022-11-06 16:09:10 +00:00
|
|
|
<p className="mt-[2px] text-sm text-gray-500">{template.text}</p>
|
2022-10-15 08:05:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-06 16:09:10 +00:00
|
|
|
</div>
|
2023-02-17 11:12:20 +00:00
|
|
|
<div className="hidden w-full sm:block">
|
|
|
|
<div className="float-right">
|
|
|
|
<Button color="secondary" className=" w-[90px]" target="_blank" href={template.link}>
|
|
|
|
Use Zap
|
|
|
|
</Button>
|
|
|
|
</div>
|
2022-10-15 08:05:37 +00:00
|
|
|
</div>
|
|
|
|
<div className="mt-2 block w-full sm:hidden">
|
|
|
|
<div className="float-right">
|
|
|
|
<Button color="secondary" className="w-[90px]" target="_blank" href={template.link}>
|
|
|
|
Use Zap
|
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|