Skip to content

Commit 3630cbb

Browse files
committed
fix: replace inline prop types with interface for consistency
1 parent 664e3e9 commit 3630cbb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugins/blog/components/Share.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ import IconBrandLinkedin from "tabler_icons_tsx/brand-linkedin.tsx";
44
import IconBrandReddit from "tabler_icons_tsx/brand-reddit.tsx";
55
import IconBrandTwitter from "tabler_icons_tsx/brand-twitter.tsx";
66

7+
interface ShareProps {
8+
url: URL;
9+
title: string;
10+
}
11+
712
/**
813
* Dynamically generates links for sharing the current content on the major
914
* social media platforms.
1015
*
1116
* @see {@link https://schier.co/blog/pure-html-share-buttons}
1217
*/
13-
export default function Share(props: { url: URL; title: string }) {
18+
export default function Share(props: ShareProps) {
1419
return (
1520
<div class="flex flex-row gap-4 my-4">
1621
<span class="align-middle">Share</span>

0 commit comments

Comments
 (0)