activity-kit-core/packages/activitypub-core-jsx-compon.../src/pages/EntityPage/OrderedCollection.tsx

20 lines
362 B
TypeScript

import { AP } from 'activitypub-core-types';
import React from 'react';
export function OrderedCollectionEntity({ collection }: { collection: AP.OrderedCollection }) {
const {
orderedItems: items
} = collection;
if (!Array.isArray(items)) {
return <></>
}
return (
<div>
<h1>
{collection.name}
</h1>
</div>
);
}