{"version":3,"file":"ProfileWrapper-os2AqkjS.js","sources":["../../../app/javascript/components/profile/ProfileMiniHeader.tsx","../../../app/javascript/components/profile/ProfileWrapper.tsx"],"sourcesContent":["import UserNav from \"components/profile/UserNav\";\nimport Container from \"hardcover-ui/components/Container\";\nimport { UserSerializersUserByline } from \"types/serializers\";\nimport Heading from \"hardcover-ui/components/Heading\";\nimport Badge from \"hardcover-ui/components/Badge\";\nimport Avatar from \"hardcover-ui/components/Avatar\";\nimport LocaleNumber from \"components/ui/LocaleNumber\";\nimport FollowUserButton from \"components/FollowUserButton/FollowUserButton\";\nimport pluralize from \"lib/pluralize\";\n\nexport default function ProfileMiniHeader({\n user,\n}: {\n user: UserSerializersUserByline;\n}) {\n return (\n \n
\n
\n \n
\n {user.name}\n
\n {pluralize(\"Read\", user.booksCount)}\n {user.pro ? {user.flair} : false}\n {user.isLibrarian ? Librarian : false}\n
\n
\n
\n \n
\n\n
\n \n
\n
\n );\n}\n","import ProfileMiniHeader from \"./ProfileMiniHeader\";\nimport { PageSerializersUsersLayout } from \"types/serializers\";\nimport CoverLayout from \"layouts/CoverLayout\";\n\nexport interface Props {\n user: PageSerializersUsersLayout;\n children: React.ReactNode;\n}\n\nexport default function ProfileWrapper({ user, children }: Props) {\n return (\n \n \n\n {children}\n \n );\n}\n"],"names":["ProfileMiniHeader","user","jsxs","Container","jsx","Avatar","Heading","Badge","LocaleNumber","pluralize","FollowUserButton","UserNav","ProfileWrapper","children","CoverLayout"],"mappings":"8SAUA,SAAwBA,EAAkB,CACxC,KAAAC,CACF,EAEG,CAEC,OAAAC,EAAA,KAACC,EAAU,CAAA,KAAK,KACd,SAAA,CAACD,EAAAA,KAAA,MAAA,CAAI,UAAU,gEACb,SAAA,CAACA,EAAAA,KAAA,MAAA,CAAI,UAAU,0BACb,SAAA,CAACE,EAAAA,IAAAC,EAAA,CAAO,KAAK,KAAK,MAAOJ,EAAK,MAAO,IAAKA,EAAK,QAAU,CAAA,EACzDC,EAAAA,KAAC,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