cal/packages/features/bookings/components/event-meta/Title.tsx
Hariom Balhara a8975f541f
fix: Dynamic Group Booking link for organization (#12825)
Co-authored-by: Erik <erik@erosemberg.com>
Co-authored-by: Omar López <zomars@me.com>
2023-12-19 17:42:40 +00:00

20 lines
504 B
TypeScript

import classNames from "@calcom/lib/classNames";
interface EventTitleProps {
children: React.ReactNode;
/**
* Option to override the default h1 tag.
*/
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span";
className?: string;
}
export const EventTitle = ({ children, as, className }: EventTitleProps) => {
const El = as || "h1";
return (
<El data-testid="event-title" className={classNames("text-text text-xl font-semibold", className)}>
{children}
</El>
);
};