{"version":3,"file":"GraphFooter.cjs","names":[],"sources":["../src/Components/Elements/GraphFooter.tsx"],"sourcesContent":["import { FootNote } from '@/Components/Typography/FootNote';\r\nimport { Source } from '@/Components/Typography/Source';\r\nimport type { SourcesDataType } from '@/Types';\r\n\r\ninterface Props {\r\n  footNote?: string | React.ReactNode;\r\n  sources?: SourcesDataType[];\r\n  width?: number;\r\n  styles?: { footnote?: React.CSSProperties; source?: React.CSSProperties };\r\n  classNames?: { footnote?: string; source?: string };\r\n}\r\n\r\nexport function GraphFooter(props: Props) {\r\n  const { sources, footNote, width, styles, classNames } = props;\r\n  if ((sources === undefined || (sources || []).length === 0) && footNote === undefined)\r\n    return null;\r\n  return (\r\n    <div className='flex flex-col pt-4' style={{ maxWidth: width ? `${width}px` : 'none' }}>\r\n      {sources ? (\r\n        <Source sources={sources} style={styles?.source} className={classNames?.source} />\r\n      ) : null}\r\n      {footNote ? (\r\n        <FootNote text={footNote} style={styles?.footnote} className={classNames?.footnote} />\r\n      ) : null}\r\n    </div>\r\n  );\r\n}\r\n"],"mappings":"kMAYA,SAAgB,EAAY,EAAc,CACxC,GAAM,CAAE,UAAS,WAAU,QAAO,SAAQ,cAAe,EAGzD,OAFK,IAAY,IAAA,KAAc,GAAW,CAAC,GAAG,SAAW,IAAM,IAAa,IAAA,GACnE,MAEP,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,qBAAqB,MAAO,CAAE,SAAU,EAAQ,GAAG,EAAM,IAAM,MAAO,WAArF,CACG,GACC,EAAA,EAAA,KAAC,EAAA,OAAD,CAAiB,UAAS,MAAO,GAAQ,OAAQ,UAAW,GAAY,MAAS,CAAA,EAC/E,KACH,GACC,EAAA,EAAA,KAAC,EAAA,SAAD,CAAU,KAAM,EAAU,MAAO,GAAQ,SAAU,UAAW,GAAY,QAAW,CAAA,EACnF,IACD,GAET"}