{"version":3,"file":"ReadingFormatIcon-BjeylfF6.js","sources":["../../../app/javascript/components/shared/ReadingFormatIcon.tsx"],"sourcesContent":["import Icon from \"hardcover-ui/components/Icon\";\nimport { IconThemeProps } from \"hardcover-ui/theme/components/icon\";\nimport {\n ReadingFormatIDType,\n ReadingFormatByID,\n} from \"types/ReadingFormatType\";\n\ntype Props = {\n readingFormatId: number | ReadingFormatIDType;\n className?: string;\n iconType?: \"solid\" | \"regular\";\n size?: IconThemeProps[\"size\"];\n};\n\nexport default function ReadingFormatIcon({\n readingFormatId = 1,\n className = \"\",\n iconType = \"solid\",\n size = \"md\",\n}: Props) {\n const format = ReadingFormatByID[readingFormatId];\n if (format) {\n return (\n \n );\n }\n return <>;\n}\n"],"names":["ReadingFormatIcon","readingFormatId","className","iconType","size","format","ReadingFormatByID","jsx","Icon","Fragment"],"mappings":"oIAcA,SAAwBA,EAAkB,CACxC,gBAAAC,EAAkB,EAClB,UAAAC,EAAY,GACZ,SAAAC,EAAW,QACX,KAAAC,EAAO,IACT,EAAU,CACF,MAAAC,EAASC,EAAkBL,CAAe,EAChD,OAAII,EAEAE,EAAA,IAACC,EAAA,CACC,KAAML,IAAa,QAAUE,EAAO,KAAOA,EAAO,YAClD,UAAAH,EACA,KAAAE,CAAA,CAAA,EAIGG,EAAA,IAAAE,WAAA,CAAA,CAAA,CACX"}