import { type PropsWithChildren } from 'react'; import { useNavigate } from 'react-router'; import style from './AppLink.module.scss'; interface AppLinkProps { search: string; } /** * Component used to navigate to an editor link inside the same window * Handles the path to respect Ontime Clouds base URL */ export default function AppLink({ search, children }: PropsWithChildren) { const navigate = useNavigate(); const handleClick = () => navigate({ search }); return ( ); }