feat: threads provider

This commit is contained in:
Nevo David 2024-07-07 13:05:46 +07:00
parent 7bf8b4d6cc
commit 20da080ea5
1 changed files with 7 additions and 6 deletions

View File

@ -109,10 +109,11 @@ const ThreadsPreview: FC = (props) => {
); );
}; };
export default withProvider(null, ThreadsPreview, undefined, async ([firstPost, ...otherPosts]) => { export default withProvider(
if (!firstPost.length) { null,
return 'Instagram should have at least one media'; ThreadsPreview,
undefined,
async ([firstPost, ...otherPosts]) => {
return true;
} }
);
return true;
});