mirror of https://github.com/jetkvm/kvm.git
				
				
				
			
		
			
				
	
	
		
			56 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
import { PlusCircleIcon } from "@heroicons/react/16/solid";
 | 
						|
import { LuPlus } from "react-icons/lu";
 | 
						|
 | 
						|
import Card from "@/components/Card";
 | 
						|
import { Button } from "@/components/Button";
 | 
						|
 | 
						|
export default function EmptyStateCard({
 | 
						|
  onCancelWakeOnLanModal,
 | 
						|
  setShowAddForm,
 | 
						|
}: {
 | 
						|
  onCancelWakeOnLanModal: () => void;
 | 
						|
  setShowAddForm: (show: boolean) => void;
 | 
						|
}) {
 | 
						|
  return (
 | 
						|
    <div className="select-none space-y-4">
 | 
						|
      <Card className="animate-fadeIn opacity-0">
 | 
						|
        <div className="flex items-center justify-center py-8 text-center">
 | 
						|
          <div className="space-y-3">
 | 
						|
            <div className="space-y-1">
 | 
						|
              <div className="inline-block">
 | 
						|
                <Card>
 | 
						|
                  <div className="p-1">
 | 
						|
                    <PlusCircleIcon className="h-4 w-4 shrink-0 text-blue-700 dark:text-white" />
 | 
						|
                  </div>
 | 
						|
                </Card>
 | 
						|
              </div>
 | 
						|
              <h3 className="text-sm font-semibold leading-none text-black dark:text-white">
 | 
						|
                No devices added
 | 
						|
              </h3>
 | 
						|
              <p className="text-xs leading-none text-slate-700 dark:text-slate-300">
 | 
						|
                Add a device to start using Wake-on-LAN
 | 
						|
              </p>
 | 
						|
            </div>
 | 
						|
          </div>
 | 
						|
        </div>
 | 
						|
      </Card>
 | 
						|
      <div
 | 
						|
        className="flex animate-fadeIn items-center justify-end space-x-2 opacity-0"
 | 
						|
        style={{
 | 
						|
          animationDuration: "0.7s",
 | 
						|
          animationDelay: "0.2s",
 | 
						|
        }}
 | 
						|
      >
 | 
						|
        <Button size="SM" theme="blank" text="Close" onClick={onCancelWakeOnLanModal} />
 | 
						|
        <Button
 | 
						|
          size="SM"
 | 
						|
          theme="primary"
 | 
						|
          text="Add New Device"
 | 
						|
          onClick={() => setShowAddForm(true)}
 | 
						|
          LeadingIcon={LuPlus}
 | 
						|
        />
 | 
						|
      </div>
 | 
						|
    </div>
 | 
						|
  );
 | 
						|
}
 |