32 lines
680 B
TypeScript
Raw Normal View History

import Feed from "@/containers/Feed";
import Spinner from "@/components/spinner";
2023-10-20 20:02:57 -04:00
export default function ProfileFeed({
pubkey,
alt,
}: {
pubkey: string;
alt?: string;
}) {
const authors = [pubkey];
if (alt) {
authors.push(alt);
}
return (
<div className="center w-full flex-col items-stretch space-y-6 text-primary">
<Feed
filter={{
2023-10-20 20:02:57 -04:00
authors: authors,
kinds: [1],
}}
loader={() => (
<div className="center flex-col gap-y-4 pt-7 text-center">
<Spinner />
<p className="font-medium text-primary">Fetching notes...</p>
</div>
)}
/>
</div>
);
}