Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / components / containers / logs / AppVersionCell.tsx
blob8d2cd58759964107ffe48a89ac13665d50be0593
1 import type { AuthLog } from '@proton/shared/lib/authlog';
3 interface Props {
4     appVersion: AuthLog['AppVersion'];
7 const AppVersionCell = ({ appVersion }: Props) => {
8     if (appVersion === null) {
9         return <span className="flex-1">-</span>;
10     }
12     const appVersionList = appVersion.split('@', 2);
13     if (appVersionList.length > 1) {
14         return (
15             <span className="flex-1">
16                 {appVersionList[0]}
17                 <br />
18                 {appVersionList[1]}
19             </span>
20         );
21     }
22     return <span className="flex-1">{appVersion}</span>;
25 export default AppVersionCell;