|
|
@ -1,8 +1,9 @@
|
|
|
|
import { useCallback } from 'react';
|
|
|
|
import { useCallback } from 'react';
|
|
|
|
|
|
|
|
|
|
|
|
import { useAppSelector } from 'soapbox/hooks';
|
|
|
|
|
|
|
|
import { makeGetAccount } from 'soapbox/selectors';
|
|
|
|
import { makeGetAccount } from 'soapbox/selectors';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { useAppSelector } from './useAppSelector';
|
|
|
|
|
|
|
|
|
|
|
|
/** Get the logged-in account from the store, if any. */
|
|
|
|
/** Get the logged-in account from the store, if any. */
|
|
|
|
export const useOwnAccount = () => {
|
|
|
|
export const useOwnAccount = () => {
|
|
|
|
const getAccount = useCallback(makeGetAccount(), []);
|
|
|
|
const getAccount = useCallback(makeGetAccount(), []);
|
|
|
|