---
import styles from "./SearchTrigger.module.css";
import { getLangFromEnv, useTranslations } from "../../i18n/utils";
export interface Props {
id?: string;
label?: string;
showShortcut?: boolean;
large?: boolean;
icon?: string;
dialogId?: string;
}
const lang = getLangFromEnv();
const t = useTranslations(lang);
const {
id = "search-trigger",
label,
showShortcut = true,
large = false,
icon = "search",
dialogId = "search-dialog",
} = Astro.props;
const buttonLabel = label || t("search.trigger.label");
---