/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import type { IDetailsRowProps } from '@fluentui/react' import type { IRenderFunction } from '@fluentui/utilities' import { useCallback } from 'react' import { StripedRow } from '../renderers/index.js' /** * * @param striped - * @returns */ export function useStripedRowsRenderer( striped: boolean, columnBorders: boolean, compactRowHeight: number, ): IRenderFunction { return useCallback( (props: IDetailsRowProps | undefined) => { if (!props) { return null } return ( ) }, [striped, columnBorders, compactRowHeight], ) }