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