Merge branch 'IDTEAM-remove-bf-ff' into 'main'
[ProtonMail-WebClient.git] / packages / components / containers / notification / DesktopNotificationSection.tsx
blob6a19b2e3dba7856cc7348616a583e02623f34649
1 import { c } from 'ttag';
3 import Row from '@proton/components/components/container/Row';
4 import Label from '@proton/components/components/label/Label';
5 import Info from '@proton/components/components/link/Info';
6 import { getKnowledgeBaseUrl } from '@proton/shared/lib/helpers/url';
8 import type { Props } from './DesktopNotificationPanel';
9 import DesktopNotificationPanel from './DesktopNotificationPanel';
11 const DesktopNotificationSection = ({ onTest, infoURL = getKnowledgeBaseUrl('/desktop-notifications') }: Props) => {
12     return (
13         <Row>
14             <Label>
15                 <span className="mr-2">{c('Label').t`Desktop notification`}</span>
16                 <Info url={infoURL} />
17             </Label>
18             <DesktopNotificationPanel onTest={onTest} />
19         </Row>
20     );
23 export default DesktopNotificationSection;