import Dialog from "~/components/Dialog"; import Notice from "~/components/Notice"; import cn from "~/utils/cn"; interface LinkUserProps { userId: string; displayName: string; headscaleUsers: { id: string; name: string }[]; currentLink?: string; isOpen: boolean; setIsOpen: (isOpen: boolean) => void; } export default function LinkUser({ userId, displayName, headscaleUsers, currentLink, isOpen, setIsOpen, }: LinkUserProps) { return ( Link Headscale user for {displayName} Select which Headscale user this identity should be linked to. This controls which machines they can manage and enables self-service features. {headscaleUsers.length === 0 ? ( All Headscale users are already linked to other accounts. ) : ( <> )} ); }