diff --git a/src/components/atoms/SocialShare.astro b/src/components/atoms/SocialShare.astro index 6ae8980..99035bf 100644 --- a/src/components/atoms/SocialShare.astro +++ b/src/components/atoms/SocialShare.astro @@ -1,23 +1,30 @@ --- import { Icon } from 'astro-icon/components'; + +interface Props { + text?: string; + url?: string | URL; + class?: string; +} + const { text, url, class: className = 'inline-block' } = Astro.props; ---
Share:
diff --git a/src/components/atoms/Tags.astro b/src/components/atoms/Tags.astro index 43fd18f..265b974 100644 --- a/src/components/atoms/Tags.astro +++ b/src/components/atoms/Tags.astro @@ -1,6 +1,11 @@ --- import { getPermalink } from '~/utils/permalinks'; +interface Props { + tags?: string[]; + class?: string; +} + const { tags, class: className = 'text-sm' } = Astro.props; --- @@ -8,7 +13,7 @@ const { tags, class: className = 'text-sm' } = Astro.props; tags && Array.isArray(tags) && (