π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
'use client';
import { usePathname } from 'next/navigation';
import { useMemo } from 'react';
import { useMenuItem } from '@gitroom/frontend/components/layout/top.menu';
export const Title = () => {
const path = usePathname();
const { all: menuItems } = useMenuItem();
const currentTitle = useMemo(() => {
return menuItems.find((item) => path.indexOf(item.path) > -1)?.name;
}, [path]);
return <h1 className="truncate">{currentTitle}</h1>;
};