Skip to content

Commit

Permalink
Stuff!
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshekey committed Jan 7, 2025
1 parent a31312b commit 7c7e30a
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions apps/www/app/components/page-header.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import { cx } from "@ngrok/mantle/cx";
import type { WithStyleProps } from "@ngrok/mantle/types";
import type { PropsWithChildren } from "react";
import type { ComponentProps } from "react";
import { PreviewBadge, UnreleasedBadge } from "./badges";

type PageHeaderProps = WithStyleProps &
PropsWithChildren & {
id?: string;
isPreview?: boolean;
isUnreleased?: boolean;
};
type PageHeaderProps = ComponentProps<"h1"> & {
isPreview?: boolean;
isUnreleased?: boolean;
};

export const PageHeader = ({ children, className, style, id, isPreview, isUnreleased }: PageHeaderProps) => (
export const PageHeader = ({ children, className, isPreview, isUnreleased, ...props }: PageHeaderProps) => (
<div className="flex flex-wrap items-center gap-3">
<h1 className={cx("text-4xl font-medium sm:text-5xl", className)} style={style} id={id}>
<h1 className={cx("text-4xl font-medium sm:text-5xl", className)} {...props}>
{children}
</h1>
{isPreview && <PreviewBadge />}
Expand Down

0 comments on commit 7c7e30a

Please sign in to comment.