import { Title, Meta, Link } from "@solidjs/meta";
export interface PageHeadProps {
title: string;
description?: string;
ogImage?: string;
ogTitle?: string;
ogDescription?: string;
canonical?: string;
}
/**
* PageHead component for consistent page metadata across the application.
* Automatically appends " | Michael Freno" to the title.
*
* @example
* ```tsx
*
* ```
*/
export default function PageHead(props: PageHeadProps) {
const fullTitle = () => `${props.title} | Michael Freno`;
return (
<>
{fullTitle()}
{props.description && (
)}
{props.canonical && }
{/* Open Graph / Social Media Tags */}
{(props.ogTitle || props.title) && (
)}
{(props.ogDescription || props.description) && (
)}
{props.ogImage && }
>
);
}
// Named export for consistency
export { PageHead };