Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions app/components/pages/utilities/dice-roller/vtm-alert.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { InfoIcon, XIcon } from 'lucide-react';
import { useState } from 'react';
import { Alert, AlertAction, AlertDescription, AlertTitle } from '~/components/ui/alert';
import { Button } from '~/components/ui/button';

export default function VtmAlert() {
const [isOpen, setIsOpen] = useState(true);

return (
isOpen && (
<Alert className="bg-muted/50">
<InfoIcon aria-hidden />
<AlertTitle>Important!</AlertTitle>
<AlertDescription>
Regular dice are summed with hunger dice to determine the total dice rolled. Hunger dice are a
special type of die that can result in critical successes or failures, so read the rules carefully!
</AlertDescription>
<AlertAction>
<Button size="icon-xs" variant="ghost" aria-label="Close alert" onClick={() => setIsOpen(false)}>
<XIcon aria-hidden />
</Button>
</AlertAction>
</Alert>
)
);
}
Loading