From 49ccbfab511696cd403760d8b6ced2ff3bcd022b Mon Sep 17 00:00:00 2001 From: Ben Schlegel Date: Fri, 23 Feb 2024 15:50:43 +0100 Subject: [PATCH] refactor: clean function signature --- quartz/components/Head.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/quartz/components/Head.tsx b/quartz/components/Head.tsx index 3e31e68c0..6c87d6c07 100644 --- a/quartz/components/Head.tsx +++ b/quartz/components/Head.tsx @@ -13,8 +13,10 @@ import { unescapeHTML } from "../util/escape" * Generates social image (OG/twitter standard) and saves it as `.webp` inside the public folder * @param opts options for generating image */ -async function generateSocialImage(opts: ImageOptions, userOpts: SocialImageOptions) { - const { cfg, description, fileName, fontsPromise, title } = opts +async function generateSocialImage( + { cfg, description, fileName, fontsPromise, title }: ImageOptions, + userOpts: SocialImageOptions, +) { const fonts = await fontsPromise // JSX that will be used to generate satori svg