feat: add NoIncidents component

pull/113/head
Bennet Gallein 2025-05-25 11:57:12 +02:00
parent df4d18353b
commit 8b635e5d20
No known key found for this signature in database
GPG Key ID: 54F2DF6954E8C635
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
import { Alert, Text } from '@mantine/core'
import { IconInfoCircle } from '@tabler/icons-react'
export default function NoIncidentsAlert({ style }: { style?: React.CSSProperties }) {
return (
<Alert
icon={<IconInfoCircle />}
title="No Incidents in this month"
color="gray"
withCloseButton={false}
style={{
position: 'relative',
margin: '16px auto 0 auto',
...style,
}}
>
<div
style={{
position: 'absolute',
top: 10,
right: 10,
fontSize: '0.85rem',
textAlign: 'right',
padding: '2px 8px',
borderRadius: 6,
color: '#888',
}}
></div>
<Text>There are no incidents for this month.</Text>
</Alert>
)
}