import { useState } from 'react' import { TabBar } from '../../ui/Tabs' import CancellationsLog from './operations/CancellationsLog' import DiscountsLog from './operations/DiscountsLog' const TABS = [ { id: 'cancellations', label: 'Ακυρώσεις', Component: CancellationsLog }, { id: 'discounts', label: 'Εκπτώσεις', Component: DiscountsLog }, ] export default function MiscPage() { const [active, setActive] = useState('cancellations') const tab = TABS.find(t => t.id === active) || TABS[0] const { Component } = tab return (
) }