useSearchAutomation hook automates modal closing and toast notifications from URL search parameters.ts
import { useSearchAutomation } from "@arkyn/components";
searchString (required)stringscope (optional)scope:key.string
Default: ""voidtsx
import { useSearchAutomation } from "@arkyn/components";function SearchAutomationHandler({ search }: { search: string }) {useSearchAutomation(search, "filters");return null;}// Example search string:// "filters:closeModal=true&filters:message=Updated%20successfully&filters:type=success"
closeModal, message, name, and type through useScopedParams.badResponses and successResponses templates to refine toast type decisions.useScopedParams, useModal, and useToast.