Remove client-side isLoggedIn value
[ProtonMail-WebClient.git] / packages / pass / components / Layout / Card / Card.tsx
blobda56d3b2a8c222f5f95ba48381b2ca718d1be615
1 import type { CSSProperties, FC, PropsWithChildren } from 'react';
3 import { Card as CoreCard } from '@proton/atoms';
4 import clsx from '@proton/utils/clsx';
6 import { type CardType, getCardTheme } from './utils';
8 import './Card.scss';
10 type ItemCardProps = { className?: string; style?: CSSProperties; type?: CardType; onClick?: () => void };
12 export const Card: FC<PropsWithChildren<ItemCardProps>> = ({ children, className, style, type, onClick }) => (
13     <CoreCard
14         style={style}
15         rounded
16         background={false}
17         bordered={false}
18         className={clsx(getCardTheme(type), 'pass-card', `pass-card:${type}`, className)}
19         onClick={onClick}
20     >
21         {children}
22     </CoreCard>