mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
23 lines
449 B
TypeScript
23 lines
449 B
TypeScript
import type {Theme} from '@emotion/react';
|
|
|
|
export const linkStyles = ({disabled, theme}: {theme: Theme; disabled?: boolean}) => `
|
|
border-radius: ${theme.linkBorderRadius};
|
|
|
|
&:focus-visible {
|
|
box-shadow: ${theme.linkFocus} 0 0 0 2px;
|
|
text-decoration: none;
|
|
outline: none;
|
|
}
|
|
|
|
${
|
|
disabled &&
|
|
`
|
|
color:${theme.disabled};
|
|
pointer-events: none;
|
|
:hover {
|
|
color: ${theme.disabled};
|
|
}
|
|
`
|
|
}
|
|
`;
|