import "./index.scss"; import clsx from "clsx"; import React from "react"; export type PageBannerProps = React.HTMLProps & { as?: "header" | "section" | "div"; }; export function PageBanner({ as, className, children, ...other }: PageBannerProps) { const Component = as ? as : "section"; return (
{children}
); } export type BannerImageProps = React.DetailedHTMLProps, HTMLImageElement>; export const BannerImage = React.forwardRef(function BannerImage( props: BannerImageProps, ref, ) { const { className, ...other } = props; return ; }); export type TabListProps = Pick, "id" | "className" | "children"> & { as?: "ul" | "ol" | "nav" | "div" | "span"; sticky?: boolean; }; export function TabList({ as, className, children, sticky, ...other }: TabListProps) { const Component = as ? as : "nav"; return (
{children}
); } export type TabProps = Pick, "id" | "className" | "children"> & Pick, "href" | "target" | "rel"> & { active?: boolean; as?: "a" | "li" | "div" | "span"; }; export function Tab({ active, as, className, children, ...other }: TabProps) { const Component = as ? as : "a"; return ( {children} ); } export type TitleProps = Pick, "id" | "className" | "children"> & { as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" | "span" | "p"; }; export function Title({ as, className, children, ...other }: TitleProps) { const Component = as ? as : "h1"; return ( {children} ); }