1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-22 04:15:56 +01:00
upscayl/renderer/components/Tabs.tsx
2024-04-20 21:14:42 +05:30

32 lines
626 B
TypeScript

import React from "react";
type TabsProps = {
selectedTab: number;
setSelectedTab: (tab: number) => void;
};
const Tabs = ({ selectedTab, setSelectedTab }: TabsProps) => {
return (
<div className="tabs-boxed tabs mx-auto mb-2">
<a
className={`tab ${selectedTab === 0 && "tab-active"}`}
onClick={() => {
setSelectedTab(0);
}}
>
Upscayl
</a>
<a
className={`tab ${selectedTab === 1 && "tab-active"}`}
onClick={() => {
setSelectedTab(1);
}}
>
Settings
</a>
</div>
);
};
export default Tabs;