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","__vitePreload","UserMatchPercentage","userId","size","currentUserId","useCurrentUserId","useMount","jsx","Fragment","Suspense","Byline","byline","message","Text","UserByline","user","match","className","jsxs","TextLink","Avatar","_a"],"ignoreList":[],"sources":["../../../app/javascript/components/match/UserMatchPercentage/UserMatchPercentage.tsx","../../../app/javascript/components/users/UserByline.tsx"],"sourcesContent":["import { Suspense, lazy } from \"react\";\nimport useMount from \"hooks/useMount\";\nimport useCurrentUserId from \"hooks/user/useCurrentUserId\";\n\nconst UserMatchPercentageForUser = lazy(\n () => import(\"./UserMatchPercentageForUser\")\n);\n\nexport interface Props {\n userId: number;\n size?: \"sm\" | \"md\" | \"lg\";\n}\n\nexport default function UserMatchPercentage({ userId, size = \"sm\" }: Props) {\n const currentUserId = useCurrentUserId();\n const mount = useMount();\n\n if (!mount || !currentUserId) {\n return <>;\n }\n return (\n \n \n \n );\n}\n","import UserMatchPercentage from \"components/match/UserMatchPercentage/UserMatchPercentage\";\nimport Avatar from \"hardcover-ui/components/Avatar\";\nimport { AvatarThemeProps } from \"hardcover-ui/theme/components/avatar\";\nimport TextLink from \"hardcover-ui/components/TextLink\";\nimport Text from \"hardcover-ui/components/Text\";\n\nexport interface Props {\n user: any;\n byline?: boolean | string;\n size?: AvatarThemeProps[\"size\"];\n className?: string;\n match?: boolean;\n}\n\nfunction Byline({ byline }: { byline: boolean | string }) {\n if (!byline) {\n return false;\n }\n const message = typeof byline === \"string\" ? byline : \"By\";\n return (\n \n {message}\n \n );\n}\nexport default function UserByline({\n user,\n size = \"md\",\n byline = false,\n match = false,\n className = \"\",\n}: Props) {\n return (\n
\n \n \n \n
\n \n {user.name?.length > 0 && (\n \n {user.name}\n \n )}\n {user.flair && user.flair.length > 0 && (\n \n {user.flair}\n \n )}\n {match && }\n
\n
\n );\n}\n"],"file":"assets/UserByline-qw4NiLxE.js"}