import type { PageContext } from '@star-kitten/lib/discord'; import type { LocationsState } from './state'; import { Page } from './router'; import { StructureType } from '@/lib/db/types/routes'; export default async function (ctx: PageContext) { const isAdd = ctx.custom_id === Page.addLocationModal; const location = ctx.state.data.selected; return ( {isAdd && ( )} ); }