// Copyright (c) Tailscale Inc & contributors // SPDX-License-Identifier: BSD-3-Clause import React from "react" import { useAPI } from "src/api" import TailscaleIcon from "src/assets/icons/tailscale-icon.svg?react" import { NodeData } from "src/types" import Button from "src/ui/button" /** * LoginView is rendered when the client is not authenticated * to a tailnet. */ export default function LoginView({ data }: { data: NodeData }) { const api = useAPI() return (
{data.Status === "Stopped" ? ( <>

Connect

Your device is disconnected from Tailscale.

) : data.IPv4 ? ( <>

Your device’s key has expired. Reauthenticate this device by logging in again, or{" "} learn more .

) : ( <>

Log in

Get started by logging in to your Tailscale network. Or, learn more at{" "} tailscale.com .

)}
) }