import type { ComponentPropsWithoutRef } from 'react'; import classNames from 'classnames'; import { Link } from 'react-router-dom'; import type { IconProp } from '@/mastodon/components/icon'; import { Icon } from '@/mastodon/components/icon'; import { polymorphicForwardRef } from '@/types/polymorphic'; import classes from './subheading.module.scss'; export const Subheading = polymorphicForwardRef<'h2'>( ({ as: Component = 'h2', children, className, ...props }, ref) => { return ( {children} ); }, ); interface SubheadingLinkProps extends ComponentPropsWithoutRef { icon: IconProp; } export const SubheadingLink: React.FC = ({ icon, children, className, ...props }) => { return ( {children} ); };