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