1
0
Fork 0
freesewing/packages/react/components/Account/Id.mjs

17 lines
327 B
JavaScript
Raw Normal View History

// Hooks
import { useAccount } from '@freesewing/react/hooks/useAccount'
/**
2025-05-30 11:29:55 +02:00
* A component to display the current user's ID
*
* @component
* @param {object} props - All component props
* @returns {JSX.Element}
*/
2025-05-30 11:29:55 +02:00
export const UserId = () => {
// Hooks
const { account } = useAccount()
2025-05-30 11:29:55 +02:00
return account.id || null
}