import { Link, NavLink, Outlet, useLocation } from 'react-router-dom'; import { twMerge } from 'tailwind-merge'; import { WindowTitlebar } from 'tauri-controls'; import { useStorage } from '@libs/storage/provider'; import { ArrowLeftIcon } from '@shared/icons'; export function NewLayout() { const { db } = useStorage(); const location = useLocation(); return (
{db.platform !== 'macos' ? ( ) : (
)}
{location.pathname !== '/new/privkey' ? (
twMerge( 'inline-flex h-9 w-20 items-center justify-center rounded-lg text-sm font-medium', isActive ? 'bg-white shadow dark:bg-black' : 'bg-transparent' ) } > Post twMerge( 'inline-flex h-9 w-20 items-center justify-center rounded-lg text-sm font-medium', isActive ? 'bg-white shadow dark:bg-black' : 'bg-transparent' ) } > Article twMerge( 'inline-flex h-9 w-28 items-center justify-center rounded-lg text-sm font-medium', isActive ? 'bg-white shadow dark:bg-black' : 'bg-transparent' ) } > File Sharing
) : null}
); }