"use client"
/**
* Rich filter option nodes for column `filter.options[].node` — pairs with
* `ColumnDef.cellKind` presets in `@exxatdesignux/ui/lib/column-filter`.
*/
import * as React from "react"
import { ProgressCell, RatingCell, SignalBarsCell } from "@/components/data-views"
export function ratingFilterOptions(max = 5) {
return Array.from({ length: max }, (_, i) => {
const value = i + 1
return {
value: String(value),
label: value === 1 ? "1 star" : `${value} stars`,
node: ,
}
})
}
export function libraryDifficultyFilterOptions() {
return [
{ value: "easy", label: "Low", node: },
{ value: "medium", label: "Normal", node: },
{ value: "hard", label: "High", node: },
]
}
export function signalBarsFilterOptions() {
return [
{
value: "1",
label: "Low",
node: ,
},
{
value: "2",
label: "Normal",
node: ,
},
{
value: "3",
label: "High",
node: ,
},
]
}
export function progressFilterBucketOptions() {
return [
{ value: "0", label: "0%", node: },
{ value: "25", label: "25%", node: },
{ value: "50", label: "50%", node: },
{ value: "75", label: "75%", node: },
{ value: "100", label: "100%", node: },
]
}