2023-04-12 15:26:31 +00:00
|
|
|
import { Shield } from "@calcom/ui/components/icon";
|
2022-07-27 02:24:00 +00:00
|
|
|
|
2021-09-21 09:29:20 +00:00
|
|
|
const TwoFactorModalHeader = ({ title, description }: { title: string; description: string }) => {
|
|
|
|
return (
|
|
|
|
<div className="mb-4 sm:flex sm:items-start">
|
2022-03-05 15:37:46 +00:00
|
|
|
<div className="bg-brand text-brandcontrast dark:bg-darkmodebrand dark:text-darkmodebrandcontrast mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-opacity-5 sm:mx-0 sm:h-10 sm:w-10">
|
2023-04-12 15:26:31 +00:00
|
|
|
<Shield className="text-inverted h-6 w-6" />
|
2021-09-21 09:29:20 +00:00
|
|
|
</div>
|
2023-06-22 22:25:37 +00:00
|
|
|
<div className="mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left">
|
2023-04-05 18:14:46 +00:00
|
|
|
<h3 className="font-cal text-emphasis text-lg font-medium leading-6" id="modal-title">
|
2021-09-21 09:29:20 +00:00
|
|
|
{title}
|
|
|
|
</h3>
|
2023-04-05 18:14:46 +00:00
|
|
|
<p className="text-muted text-sm">{description}</p>
|
2021-09-21 09:29:20 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default TwoFactorModalHeader;
|