
    var body: some View {
        ZStack {
            Rectangle()
                .foregroundColor(isFiltered ? category.color.opacity(0.3) : category.color)
            Text(category.rawValue.localized).fontWeight(.bold).foregroundStyle(.white)
                .padding(.vertical, 5).lineLimit(1)
        }
        .onTapGesture {
            isFiltered.toggle()
            HapticUtil.generateFeedback(style: .soft)
        }
        .cornerRadius(5)
    }
}