import { FileKey } from 'lucide-react' import { useMemo } from 'react' import { Button, DialogFooter, DialogHeader, DialogSection, DialogSectionSeparator, DialogTitle, Input, Label, Textarea, } from 'ui' import CopyButton from '@/components/ui/CopyButton' import { JWTSigningKey } from '@/data/jwt-signing-keys/jwt-signing-keys-query' export function KeyDetailsDialog({ selectedKey, restURL, onClose, }: { selectedKey: JWTSigningKey restURL: string onClose: () => void }) { const jwksURL = useMemo(() => new URL('/auth/v1/.well-known/jwks.json', restURL), [restURL]) const jwks = useMemo( () => JSON.stringify({ keys: [selectedKey.public_jwk] }, null, 2), [selectedKey] ) return ( <> Key Details