import React, { ReactNode } from 'react'; import tw from 'twin.macro'; import { useFormikContext } from 'formik'; import AdminBox from '@/components/admin/AdminBox'; import { faCogs } from '@fortawesome/free-solid-svg-icons'; import Field from '@/components/elements/Field'; import OwnerSelect from '@/components/admin/servers/OwnerSelect'; import { useServerFromRoute } from '@/api/admin/server'; export default ({ children }: { children?: ReactNode }) => { const { data: server } = useServerFromRoute(); const { isSubmitting } = useFormikContext(); return (
{children}
); };