27 lines
988 B
JavaScript
27 lines
988 B
JavaScript
'use client';
|
|
import { makeStyles, mergeClasses } from '@griffel/react';
|
|
import { tokens } from '@fluentui/react-theme';
|
|
import { useDrawerFooterStyles_unstable } from '@fluentui/react-drawer';
|
|
export const navDrawerFooterClassNames = {
|
|
root: 'fui-NavDrawerFooter'
|
|
};
|
|
/**
|
|
* Styles for the root slot
|
|
*/ const useStyles = makeStyles({
|
|
root: {
|
|
padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalXS} ${tokens.spacingVerticalXXS} ${tokens.spacingVerticalXS} ${tokens.spacingHorizontalMNudge}`,
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
rowGap: tokens.spacingVerticalXXS
|
|
}
|
|
});
|
|
/**
|
|
* Apply styling to the NavDrawerFooter slots based on the state
|
|
*/ export const useNavDrawerFooterStyles_unstable = (state)=>{
|
|
'use no memo';
|
|
useDrawerFooterStyles_unstable(state);
|
|
const styles = useStyles();
|
|
state.root.className = mergeClasses(navDrawerFooterClassNames.root, styles.root, state.root.className);
|
|
return state;
|
|
};
|