22 lines
575 B
TypeScript
22 lines
575 B
TypeScript
import { TabsContent } from "@/components/ui/tabs";
|
|
import { Button } from "@/components/ui/button";
|
|
|
|
const PingTab = ({ onPingClick }: { onPingClick: () => void }) => {
|
|
return (
|
|
<TabsContent value="ping">
|
|
<div className="grid grid-cols-2 gap-4">
|
|
<div className="col-span-2 flex justify-center items-center">
|
|
<Button
|
|
onClick={onPingClick}
|
|
className="font-bold py-6 px-12 rounded-full"
|
|
>
|
|
Ping Server
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</TabsContent>
|
|
);
|
|
};
|
|
|
|
export default PingTab;
|