import type { FC } from 'react'; import { FormattedMessage } from 'react-intl'; import type { NavLinkProps } from 'react-router-dom'; import { NavLink } from 'react-router-dom'; import { useLayout } from '@/flavours/glitch/hooks/useLayout'; import { isRedesignEnabled } from '../common'; import classes from './redesign.module.scss'; export const AccountTabs: FC<{ acct: string }> = ({ acct }) => { const { layout } = useLayout(); if (isRedesignEnabled()) { return (
{layout !== 'single-column' && ( )}
); } return (
); }; const isActive: Required['isActive'] = (match, location) => match?.url === location.pathname || (!!match?.url && location.pathname.startsWith(`${match.url}/tagged/`));