mirror of
https://github.com/ArthurDanjou/arthome.git
synced 2026-01-14 12:14:33 +01:00
22 lines
366 B
TypeScript
22 lines
366 B
TypeScript
export function useTabs() {
|
|
async function createTab(tab: TabType) {
|
|
console.log('createTab', tab)
|
|
return tab
|
|
}
|
|
|
|
async function deleteTab(tab: TabType) {
|
|
console.log('deleteTab', tab)
|
|
return tab
|
|
}
|
|
|
|
async function updateTab(tab: TabType) {
|
|
console.log('updateTab', tab)
|
|
return tab
|
|
}
|
|
|
|
return {
|
|
createTab,
|
|
deleteTab,
|
|
}
|
|
}
|