import * as React from 'react'; import {ExtractProps, createSubcomponent} from '@workday/canvas-kit-react/common'; import {Box, mergeStyles} from '@workday/canvas-kit-react/layout'; import {createStencil} from '@workday/canvas-kit-styling'; import {useBannerActionText, useBannerModel} from './hooks'; export interface BannerActionTextProps extends ExtractProps { /** * The text of the Banner action. * @default 'View All' */ children?: React.ReactNode; } export const actionBarTextStencil = createStencil({ base: { textDecoration: 'underline', display: 'inline', }, modifiers: { isSticky: { true: { display: 'none', }, }, }, }); export const BannerActionText = createSubcomponent('span')({ displayName: 'Banner.ActionTextText', modelHook: useBannerModel, elemPropsHook: useBannerActionText, })(({children = 'View All', ...elemProps}, Element, model) => { return ( {children} ); });