mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-04 19:39:39 -05:00
60f7103198
* revert to last working version * add updated ui components * update formbricks-com components * apply prettier formatting * update apps/web files
32 lines
779 B
TypeScript
32 lines
779 B
TypeScript
import { BackIcon } from "@formbricks/ui";
|
|
import Link from "next/link";
|
|
|
|
interface IntegrationPageTitleProps {
|
|
title: string;
|
|
icon?: React.ReactNode;
|
|
goBackTo: string;
|
|
environmentId: string;
|
|
}
|
|
|
|
const IntegrationPageTitle: React.FC<IntegrationPageTitleProps> = ({
|
|
title,
|
|
icon,
|
|
goBackTo,
|
|
environmentId,
|
|
}) => {
|
|
return (
|
|
<div className="mb-8">
|
|
<Link className="inline-block" href={`/environments/${environmentId}/integrations/${goBackTo}`}>
|
|
<BackIcon className="mb-2 h-6 w-6" />
|
|
</Link>
|
|
|
|
<div className="my-4 flex items-baseline">
|
|
{icon && <div className="h-6 w-6">{icon}</div>}
|
|
<h1 className="ml-3 text-2xl font-bold text-slate-600">{title}</h1>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default IntegrationPageTitle;
|