This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: "contributed to" layout

+40
+40
src/webapp/app/(dashboard)/profile/[handle]/(withHeader)/network/contributed-to/layout.tsx
··· 1 + import { getProfile } from '@/features/profile/lib/dal'; 2 + import type { Metadata } from 'next'; 3 + import { Fragment } from 'react'; 4 + 5 + interface Props { 6 + params: Promise<{ handle: string }>; 7 + children: React.ReactNode; 8 + } 9 + 10 + export async function generateMetadata({ params }: Props): Promise<Metadata> { 11 + const { handle } = await params; 12 + const profile = await getProfile(handle); 13 + 14 + return { 15 + title: `Collection ${profile.name} has contributed to`, 16 + description: `Explore collections ${profile.name} has contributed to on Semble`, 17 + authors: [ 18 + { 19 + name: profile.name, 20 + url: `${process.env.APP_URL}/profile/${handle}`, 21 + }, 22 + ], 23 + alternates: { 24 + types: { 25 + '': `at://${profile.id}`, 26 + }, 27 + }, 28 + other: { 29 + 'atprotocol:creator': `at://${profile.id}`, 30 + }, 31 + }; 32 + } 33 + 34 + interface Props { 35 + children: React.ReactNode; 36 + } 37 + 38 + export default function Layout(props: Props) { 39 + return <Fragment>{props.children}</Fragment>; 40 + }