* Icon and IconName * Button and ButtonGroup * UserAvatar * AvatarGroup * Avatar * WizardLayout * Dialogs * EmptyScreen * showToast and TextField * Editor * Skeleton * Skeleton * TopBanner and showToast * Button again * more * perf: Remove app-store reference from @calcom/ui * more * Fixing types * Icon * Fixed casing * dropdown * more * Select * more * Badge * List * more * Divider * more * fix * fix type check * refactor * fix * fix * fix * fix * fix * fix * fix * fix type check * fix * fix * fix * fix * more * more * more * more * add index file to components/command * fix * fix * fix * fix imports * fix * fix * fix * fix * fix * fix * fix * fix build errors * fix build errors * fix --------- Co-authored-by: Keith Williams <keithwillcode@gmail.com>
20 lines
838 B
TypeScript
20 lines
838 B
TypeScript
import { Icon } from "@calcom/ui/components/icon";
|
|
|
|
const TwoFactorModalHeader = ({ title, description }: { title: string; description: string }) => {
|
|
return (
|
|
<div className="mb-4 sm:flex sm:items-start">
|
|
<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">
|
|
<Icon name="shield" className="text-inverted h-6 w-6" />
|
|
</div>
|
|
<div className="mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left">
|
|
<h3 className="font-cal text-emphasis text-lg font-medium leading-6" id="modal-title">
|
|
{title}
|
|
</h3>
|
|
<p className="text-muted text-sm">{description}</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default TwoFactorModalHeader;
|