mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
18 lines
409 B
TypeScript
18 lines
409 B
TypeScript
import React, { useEffect } from 'react';
|
|
|
|
import Nui from '../../../../os/nui-events/utils/Nui';
|
|
import { useTweets } from '../../hooks/useTweets';
|
|
import TweetList from './TweetList';
|
|
|
|
export function TweetListContainer() {
|
|
const { tweets } = useTweets();
|
|
|
|
useEffect(() => {
|
|
Nui.send('phone:fetchTweets', {});
|
|
}, []);
|
|
|
|
return <TweetList tweets={tweets} />;
|
|
}
|
|
|
|
export default TweetListContainer;
|