mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* refactor: Move classNames from @calcom/lib to @calcom/ui * Import fix * Removed extra import of classNames * Removed tailwind-merge from @calcom/lib
20 lines
503 B
TypeScript
20 lines
503 B
TypeScript
import classNames from "@calcom/ui/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>
|
|
);
|
|
};
|