(channel);
return (
);
}
function PaginatedList({channel, isNested}: ChannelContentProps) {
const shouldPaginate = !isNested;
const query = useChannelContent(channel, null, {paginate: shouldPaginate});
return (
{shouldPaginate && (
)}
{shouldPaginate && (
)}
);
}
interface ContentProps {
content: ChannelContentModel[] | undefined;
children?: ReactNode;
className?: string;
}
function Content({content = [], children, className}: ContentProps) {
return (
{content.map(item => (
))}
{children}
);
}