import IconButton from "@mui/material/IconButton"; import { wrappers } from "@/utils/share"; import Tooltip from "@mui/material/Tooltip"; import { CodepenIcon } from "@/components/CodepenIcon"; import { ShareProps } from "../pages"; import { prettify } from "@/utils"; export function Codepen({ title, content }: ShareProps) { // location.reload is not allowed on CodePen content = content.replace("location.reload()", "history.go(0)"); content = prettify(content); return (
); }