mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
17 lines
361 B
TypeScript
17 lines
361 B
TypeScript
import React, { FunctionComponent, ReactElement, useEffect } from "react";
|
|
|
|
type Props = {
|
|
children: Array<ReactElement>;
|
|
title: string;
|
|
};
|
|
|
|
const Container: FunctionComponent<Props> = ({ children, title }: Props) => {
|
|
useEffect(() => {
|
|
document.title = `OneUptime | ${title}`;
|
|
}, []);
|
|
|
|
return <div>{children}</div>;
|
|
};
|
|
|
|
export default Container;
|