Refrsh.tsx 598 Bytes
import React from 'react';

interface RefreshProps {
  refreshRooms: () => void
}

export const Refresh: React.FC<RefreshProps> = ({ refreshRooms }) => {
  return (
    <button className="bg-green-500 active:bg-green-600
                            text-white uppercase text-xl
                            w-10 h-8 pb-0.5 ml-3 rounded shadow round
                            outline-none focus:outline-none hover:shadow-md
                            ease-linear transition-all duration-100"
                    type="button"
                    onClick={() => refreshRooms()}>⟳</button>
  );
}