// The feedback button's labels, resolved on the server: the notes page is a server component and // cannot call a function of feedback-button.tsx, which is a client module (Next refuses it with // "Attempted to call feedbackLabels() from the server"). `kit template:prune --without guides` // removes it with this folder. export interface FeedbackButtonLabels { readonly open: string /** Said when the survey cannot start: already answered, or not served to this person. */ readonly unavailable: string } type Translate = (key: string) => string export function feedbackLabels(t: Translate): FeedbackButtonLabels { return { open: t("feedback.open"), unavailable: t("feedback.unavailable") } }