Skip to content

Commit

Permalink
fix: replace inline prop types with interface for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
wesenbergg committed Jan 12, 2025
1 parent c46f34a commit 48f6453
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/blog/components/Share.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ import IconBrandLinkedin from "tabler_icons_tsx/brand-linkedin.tsx";
import IconBrandReddit from "tabler_icons_tsx/brand-reddit.tsx";
import IconBrandTwitter from "tabler_icons_tsx/brand-twitter.tsx";

interface ShareProps {
url: URL;
title: string;
}

/**
* Dynamically generates links for sharing the current content on the major
* social media platforms.
*
* @see {@link https://schier.co/blog/pure-html-share-buttons}
*/
export default function Share(props: { url: URL; title: string }) {
export default function Share(props: ShareProps) {
return (
<div class="flex flex-row gap-4 my-4">
<span class="align-middle">Share</span>
Expand Down

0 comments on commit 48f6453

Please sign in to comment.