import Dialog from "~/components/Dialog"; import Input from "~/components/Input"; interface CreateUserProps { isOidc?: boolean; isDisabled?: boolean; } export default function CreateUser({ isOidc, isDisabled }: CreateUserProps) { return ( Add user Create a Headscale user This creates a new user in Headscale. The user will appear in the “Unlinked Headscale Users” section until they sign in {isOidc ? " through your OIDC provider" : ""} and are automatically linked to a Headplane account.
{ if (value.trim().length === 0) { return "Username is required"; } if (value.includes(" ")) { return "Usernames cannot contain spaces"; } return true; }} validationBehavior="native" />
); }