2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-09 21:30:54 +00:00
Files
InvenTree/src/frontend/src/components/buttons/ScanButton.tsx
Matthias Mair 1b0998681a fix btn style
2024-04-21 23:11:43 +02:00

25 lines
527 B
TypeScript

import { t } from '@lingui/macro';
import { ActionIcon } from '@mantine/core';
import { openContextModal } from '@mantine/modals';
import { IconQrcode } from '@tabler/icons-react';
/**
* A button which opens the QR code scanner modal
*/
export function ScanButton() {
return (
<ActionIcon
onClick={() =>
openContextModal({
modal: 'qr',
title: t`Scan QR code`,
innerProps: {}
})
}
variant="transparent"
>
<IconQrcode />
</ActionIcon>
);
}