import { Group, Text } from "@mantine/core"; import { IconLayoutDashboard } from "@tabler/icons-react"; import type { SelectWithCustomItemsProps } from "@homarr/ui"; import { SelectWithCustomItems } from "@homarr/ui"; import type { Board } from "~/app/[locale]/boards/_types"; interface BoardSelectProps extends Omit, "data"> { boards: Pick[]; } export const BoardSelect = ({ boards, ...props }: BoardSelectProps) => { return ( ({ value: board.id, label: board.name, image: board.logoImageUrl, }))} SelectOption={({ label, image }: { value: string; label: string; image: string | null }) => ( {/* eslint-disable-next-line @next/next/no-img-element */} {image ? {label} : } {label} )} /> ); };