import { useState } from "@wordpress/element"; import { __, sprintf } from "@wordpress/i18n"; export const PhpMaxFileSizeWarning = ({ size }: { size: string }) => { const [show, setShow] = useState(true); if (!show) return null; return (
{sprintf( __( "Warning: Your server has a max upload size of %1$sMB. We've lowered the import quality to avoid import issues.", "unlimited-photos", ), size, )}
{__("Learn more", "unlimited-photos")}