pleroma/packages/pl-fe/src/containers/account-container.tsx
marcin mikołajczak 966b04fdf0 Call it pl-fe internally
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-28 13:41:08 +02:00

19 lines
547 B
TypeScript

import React from 'react';
import { useAccount } from 'pl-fe/api/hooks';
import Account, { IAccount } from 'pl-fe/components/account';
interface IAccountContainer extends Omit<IAccount, 'account'> {
id: string;
withRelationship?: boolean;
}
const AccountContainer: React.FC<IAccountContainer> = ({ id, withRelationship, ...props }) => {
const { account } = useAccount(id, { withRelationship });
return (
<Account account={account!} withRelationship={withRelationship} {...props} />
);
};
export { AccountContainer as default };