diff --git a/packages/sui-react-head/src/server.ts b/packages/sui-react-head/src/server.ts index 5e1c19311..e5cd0f0e0 100644 --- a/packages/sui-react-head/src/server.ts +++ b/packages/sui-react-head/src/server.ts @@ -1,4 +1,3 @@ -import {type ReactElement} from 'react' import {renderToString} from 'react-dom/server' import {BODY_ATTRIBUTES_KEY} from './Body' @@ -36,7 +35,7 @@ const transformToString = (headObject: Record = {}): string => /** * Render the tags for the head */ -export function renderHeadTagsToString(headTags: Array>): { +export function renderHeadTagsToString(headTags: ComponentTag[]): { headString: string bodyAttributes: string htmlAttributes: string