You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
375 B

import React, { useEffect } from 'react';
import { useInjection } from "inversify-react";
import { UIStore } from "../stores/UIStore";
type SetTitleProps = {
children: string
}
const SetTitle = ({ children }: SetTitleProps) => {
const uiStore = useInjection(UIStore)
useEffect(() => uiStore.setTitle(children), [])
return null
};
export default SetTitle;