mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
10 lines
379 B
TypeScript
10 lines
379 B
TypeScript
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
|
|
import { selloutState } from './state';
|
|
import { useListing } from './useListing';
|
|
import { useSetRecoilState } from 'recoil';
|
|
|
|
export const useSelloutService = () => {
|
|
const setSellout = useSetRecoilState(selloutState.listing);
|
|
useNuiEvent('SELLOUT', 'setListings', setSellout);
|
|
return useListing()
|
|
} |