Skip to content

Commit c75dfc1

Browse files
committed
Expose .description from HiveFooterProps
1 parent d8a8244 commit c75dfc1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/components/src/components/hive-footer.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ import {
1313
YouTubeIcon,
1414
} from './icons';
1515

16-
export type HiveFooterProps = IFooterExtendedProps;
16+
export interface HiveFooterProps extends IFooterExtendedProps {
17+
description?: string;
18+
}
19+
20+
export function HiveFooter({ className, logo, resources = [], sameSite, description }: HiveFooterProps) {
21+
description ||= 'Open-source GraphQL management platform'
1722

18-
export function HiveFooter({ className, logo, resources = [], sameSite }: HiveFooterProps) {
1923
return (
2024
<footer className={cn('relative flex justify-center px-4 py-6 xl:px-[120px]', className)}>
2125
<div className="mx-4 grid w-full max-w-[75rem] grid-cols-1 gap-x-6 text-green-800 max-lg:gap-y-16 sm:grid-cols-4 lg:gap-x-8 xl:gap-x-10 dark:text-neutral-400">
@@ -30,7 +34,7 @@ export function HiveFooter({ className, logo, resources = [], sameSite }: HiveFo
3034
<HiveCombinationMark className="h-8 w-auto text-green-1000 dark:text-white" />
3135
)}
3236
</Anchor>
33-
<p className="mt-6 lg:mt-8">Open-source GraphQL management platform</p>
37+
<p className="mt-6 lg:mt-8">{description}</p>
3438
</div>
3539
<div className="col-span-full grid grid-flow-row grid-cols-2 justify-stretch gap-6 text-sm sm:col-span-4 sm:grid-cols-3 lg:col-span-3 lg:pb-12 lg:text-base">
3640
<List heading="Products" links={products} />

0 commit comments

Comments
 (0)