ぼざクリ タグ広場 https://hub.nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
1.0 KiB

  1. import { Button } from '@/components/ui/button'
  2. import { Dialog,
  3. DialogContent,
  4. DialogDescription,
  5. DialogTitle,
  6. DialogTrigger } from '@/components/ui/dialog'
  7. type Props = { visible: boolean
  8. onVisibleChange: (visible: boolean) => void
  9. user: User | null }
  10. export default ({ visible, onVisibleChange, user }: Props) => {
  11. return (
  12. <Dialog open={visible} onOpenChange={onVisibleChange}>
  13. <DialogContent className="space-y-6">
  14. <DialogTitle>引継ぎコード</DialogTitle>
  15. <div>
  16. <p>あなたの引継ぎコードはこちらです:</p>
  17. <div className="m-2">{user?.inheritanceCode}</div>
  18. <p className="mt-1 text-sm text-red-500">
  19. このコードはほかの人には教えないでください!
  20. </p>
  21. <div className="my-4">
  22. <Button className="px-4 py-2 bg-red-600 text-white rounded disabled:bg-gray-400">
  23. 引継ぎコードを変更する
  24. </Button>
  25. </div>
  26. </div>
  27. </DialogContent>
  28. </Dialog>)
  29. }