UNPKG

@sikka/hawa

Version:

Modern UI Kit made with Tailwind

1 lines 1.44 kB
{"version":3,"sources":["../../layout/copyrights/Copyrights.tsx"],"sourcesContent":["import React, { FC } from \"react\";\n\ntype CopyRightsTypes = {\n /** A text used as the version of the app, for example: v1.0.0 */\n version?: string;\n /** Credit to the creator of the app, for example: Sikka Software */\n credits?: string;\n /** The URL of the logo in the copyrights */\n logoURL?: string;\n /** Enable/Disable the existance of the logo */\n withLogo?: boolean;\n /** Fires when the logo is clicked, usually goes to the website of the creator of the app */\n onLogoClicked?: any;\n};\n\nexport const Copyrights: FC<CopyRightsTypes> = (props) => {\n return (\n <div className=\"hawa-my-2 hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-1 hawa-text-xs hawa-text-gray-400\">\n {props.withLogo ? (\n <a href={props.onLogoClicked}>\n <div className=\"hawa-cursor-pointer\">\n <image href={props.logoURL} width={100} height={50} />\n </div>\n </a>\n ) : null}\n <div>{props.version}</div>\n {props.credits ? props.credits : null}\n </div>\n );\n};\n"],"mappings":";;;AAAA,OAAO,WAAmB;AAenB,IAAM,aAAkC,CAAC,UAAU;AACxD,SACE,oCAAC,SAAI,WAAU,wHACZ,MAAM,WACL,oCAAC,OAAE,MAAM,MAAM,iBACb,oCAAC,SAAI,WAAU,yBACb,oCAAC,WAAM,MAAM,MAAM,SAAS,OAAO,KAAK,QAAQ,IAAI,CACtD,CACF,IACE,MACJ,oCAAC,aAAK,MAAM,OAAQ,GACnB,MAAM,UAAU,MAAM,UAAU,IACnC;AAEJ;","names":[]}