import { React } from "../../app-framework";
import { TimeAgo } from "../../components";
interface Props {
last_edited?: number;
}
export const Changed: React.FC<Props> = React.memo(({ last_edited }) => {
if (last_edited) {
return <TimeAgo date={new Date(last_edited)} />;
} else {
return <span />;
}
});