mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-18 15:09:45 +02:00
Confirmation Dialogs
This commit is contained in:
16
src-web/hooks/Confirm.tsx
Normal file
16
src-web/hooks/Confirm.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Button } from '../components/core/Button';
|
||||
import { HStack } from '../components/core/Stacks';
|
||||
|
||||
interface Props {
|
||||
hide: () => void;
|
||||
}
|
||||
export function Confirm({ hide }: Props) {
|
||||
return (
|
||||
<HStack space={2} justifyContent="end">
|
||||
<Button color="gray" onClick={hide}>
|
||||
Cancel
|
||||
</Button>
|
||||
<Button color="primary">Confirm</Button>
|
||||
</HStack>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user