1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-01-21 10:03:45 +01:00

30 lines
612 B
TypeScript
Raw Normal View History

2023-03-18 22:38:50 +05:30
import React from "react";
type TabsProps = {
selectedTab: number;
setSelectedTab: (tab: number) => void;
};
const Tabs = ({ selectedTab, setSelectedTab }: TabsProps) => {
return (
2023-04-15 09:20:46 +05:30
<div className="tabs tabs-boxed mx-auto mb-2">
2023-03-18 22:38:50 +05:30
<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;